LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2006, 07:57 AM   #1
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Rep: Reputation: 30
DNS question.


Hi. I have a couple of DNS questions.

First, I bought a domain name (lets say www.buckrogers01.com for now). I want to run the DNS servers for this domain at home, but when I try to enter the primary DNS server's address (my IP). I get an error (on the website, but I think it's a general problem) saying that I have to enter a hostname. That's fine, I thought, except that the whole idea of a DNS server is to translate hostnames to IPs. So how does this work, if I enter a hostname then that must also be translated using another DNS server, and if that is specified by a hostname then this would go on forever.

I also noticed that for the DNS zone file for phase8.net, the primary and secondary dns servers are ns0 and ns1.phase8.net. But how are those hostnames resolved, as the zone record FOR phase8.net contains the hostnames for DNS servers (which resolve the hostnames). I thought that the DNS servers which would resolve the domain name (any domain) would be entered into the information stored with the domain on a root DNS server, but how can a host be resolved when the name server's (that are meant to resolve hostnames for the domain) use a domain they are meant to be resolving for.

Sorry for the complexity, I'll try and post a diagram later.

Thanks in advance, Buck
 
Old 02-28-2006, 08:51 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
You would normally specify an IP address as your DNS servers due to the very recursion problem you've identified. If the config on a host requires you to enter a name then it must expect to resolve that name from somewhere. The most obvious place is the /etc/hosts file which is a static list of name to IP mappings. I would define ns1.blablah.com as the dns server in the app then put

ns1.blahblah.com 1.2.3.4

in the hosts file.
 
Old 02-28-2006, 03:25 PM   #3
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
wow, someone actually understood me. So are you saying that I should request my domain controller (www.simply.com) to update my domain info with actual IP's (as their website based nameserver changing only accepts hostnames)
 
Old 03-01-2006, 03:58 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Not quite. /etc/hosts is a file that sits on your PC. When you tell your PC that to resolve names it needs to go to ns1.simply.com, your PC needs to resolve that name first to be able to resolve anything else and now your stuck in your logical loop.

However the other place to resolve names is in your PCs local /etc/hosts file. You yourself can put entries in that file for name resolution. As you are using DNS the only thing you need to resolve locally is ns1.simply.com. After that all other name resolution will be done via ns1.

As I said, most apps allow you to put in IP's, but if one insists on a name for the nameserver then you will have to resolve the name servers name locally before you can send name reolution requests to it.

Think of directory enquiries as an example. You don't know someones phone number, so you need to ring directory enquiries to find it. Unfortunately you don't know the number for directory enquiries either. Luckily you made a note of it on your notice board, so you resolve the name "directory enquiries" to 192, then by calling 192 you can now resolve "charlie farnsbarnes" to 011612287646, or indeed any other name to a number. Its that first link in the chain you need to establish or the rest won't work.


I think that /etc/hosts is checked before DNS is used so in effect you can speed up access to a site by placing an entry in your hosts file, you just lose the dynamic element. i.e. if www.simply.com is actually 4 servers then DNS would respond to requests in a round robin fashion as a primitive load balancer, or if the server IP changed you would need to manually change the entry. So like in any engineering there are pro's and cons to everything.
 
Old 03-01-2006, 07:53 AM   #5
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
I understand how all the hosts file and DNS works, but on the web management system on simply's site, when I try and change the nameservers for my domain to another dns server, I cannot enter an IP, only a hostname. So how can I transfer the nameservers for my domain to my own server (which has a static IP).

Also, in domai records at InterNIC (for example) does a normal domain record hold IP addresses for nameservers or hostnames.

I don't understand how the domain info (whois info) can hold nameservers which have a domainname, (for example ns0.phase8.net). Surly this would cause a loop in name resolution.

This is how I understand name resolution works:

COMPUTER contacts DNS server (specified either when a DHCP lease was obtained, or manually entered) --

DNS server contacts ROOT servers (which have a known IP), to find the DNS servers responsible for the requested domain, the domain and the DNS server info is stored on the root computer of the TLD --

DNS server contacts DNS server responsible for the domain, as looked up in the root servers), to find out IP of requested hostname (e.g. www).

DNS server returns IP --

Computer contacts the IP.

Now the DNS servers that are returned by the ROOT server should be IP addresses, (I think), so how come hostnames can be returned. (as the whole process would start again)

Please correct me if I'm wrong...


What I am trying to set up is a home web server (which is also running a DNS server), where I have total control over the DNS info IE I'm editing the zone file). However I cannot transfer nameserver control from simply's servers to my own. I have a staic IP. Do you know how I could accomplish this without using a 3rd party service (IE www.no-ip.com).

Thanks for all the hope so far
 
Old 03-01-2006, 08:34 AM   #6
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
When it ask for a hostname enter a hostname (lets say ns1.buckrogers01.com) . Anything you want to see as your master dns. After clicking next/save it will ask for an ip
Enter your static ip & wait to refersh the zone

It it doesnt ask for an ip (to match ns1.buckrogers01.com) means that all of us would need an DNS server outside our namezone to host our name zone
I hope i helped
 
Old 03-01-2006, 11:24 AM   #7
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
thanks, there system doesn't ask for an ip, so i'm stuck with them
 
Old 03-02-2006, 04:50 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
I'm not sure its that simple. At present the zone info resides on simply's DNS server. To host the zone info yourself this info would need to be removed from simplys DNS server and put on yours. Simply's DNS server would then need to be told that your server is authoritative for this zone. This normally involves reconfiguring the ISP's DNS servers and I hardly think they are going to let you do that yourself. Are you sure the thing your trying to configure means what you think it does? Prehaps you need to talk to them directly to clear this up as we are just guessing.
 
Old 03-02-2006, 04:35 PM   #9
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
What you need to do is ask simply DNS if they support Glue records. Glue records are the standard for alleaviating this recursion problem you are talking about.
 
Old 03-03-2006, 10:44 AM   #10
BuckRogers01
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 30
but how do I get the domain info (hosted on one of the TLDs) for my domain to contain my DNS server, as I cannot specify a hostname, because the computer the DNS will be running on is the one the domain was bought for, and I cannot specify an IP address in the nameserver fields for my domain info
 
Old 03-03-2006, 06:14 PM   #11
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
I understand how all the hosts file and DNS works, but on the web management system on simply's site, when I try and change the nameservers for my domain to another dns server, I cannot enter an IP, only a hostname. So how can I transfer the nameservers for my domain to my own server (which has a static IP).
I can't speak for your registrar's web interface, but the ones that I have used to transfer SOA to my name servers involves two steps.

1) Register the name server. This step is needed to populate the appropriate TLD name servers (like a.root-servers.net) with the name/IP of your name server. Look on your registrar's web interface for something like "Manage Registered Name Servers".

2) Once step 1 is completed, then you transfer the SOA for your domain using only the name (ns1.example.com for instance) as you have tried to do already.
 
Old 03-04-2006, 10:57 AM   #12
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
Quote:
Originally Posted by BuckRogers01
but how do I get the domain info (hosted on one of the TLDs) for my domain to contain my DNS server, as I cannot specify a hostname, because the computer the DNS will be running on is the one the domain was bought for, and I cannot specify an IP address in the nameserver fields for my domain info

That is what a glue record is for. All a glue record is is an A record that is held in the parent domain. e.g. the .com root servers will actually have an A record for your domain describing ns.yourdomain.com. This will allow name resolution of the nameservers within your domain without actually going to your nameservers for resolution.

If your provider supports glue records they will immediatly see that the hostname you are providing for your name servers are within the domain and will ask for and IP. To date the only registrar that i've dealt with that supports glue records is register.com.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
One last DNS question Bake-SaleNet Linux - Networking 5 09-24-2003 04:23 AM
DNS question cijunet Linux - Networking 3 05-04-2003 06:30 PM
DNS question... NMX Linux - Networking 2 01-12-2002 09:18 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration