You are not logged in.

#1 2014-11-06 03:32:41

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Directing domains with a certain TLD to specific nameserver

I have been looking for a way to handle this under Linux, using Mac OSX's resolver system makes this easy.  What my goal is I want to run a lightweight dns server on my local machine that takes all requests to a specific TLD, say requests to example.dev, back to 127.0.0.1.  Under OSX all I needed to do is create a like under /etc/resolver with the TLD to redirect as the file name that looks like this:

$ cat /etc/resolver/dev
nameserver 127.0.0.1
port 5300

The name server I'm running is listening on port 5300, how would I implement something like this under Archlinux?  If it matters the dns server I am using is this one https://github.com/robbiev/devdns

Offline

#2 2014-11-06 04:22:07

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Directing domains with a certain TLD to specific nameserver

On linux, there is no resolver file hierarchy. You'll have to use a nameserver that handles all queries, e.g.
dnsmasq or https://aur.archlinux.org/packages/wildcard_dns_proxy/

Last edited by progandy (2014-11-06 04:24:49)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-02-19 13:19:48

megatux
Member
Registered: 2020-06-26
Posts: 2

Re: Directing domains with a certain TLD to specific nameserver

progandy wrote:

On linux, there is no resolver file hierarchy. You'll have to use a nameserver that handles all queries, e.g.
dnsmasq or https://aur.archlinux.org/packages/wildcard_dns_proxy/

404.  Seems like the package is gone, can't find it on search.

Offline

#4 2021-02-19 13:51:49

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Directing domains with a certain TLD to specific nameserver

Because the thread is > 6 years old?
Don't necrobump, use dnsmasq.

Offline

#5 2021-02-19 14:00:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Directing domains with a certain TLD to specific nameserver

Closing this old thread, feel free to open a new one if you have specific question of how to do this now.

Offline

Board footer

Powered by FluxBB