LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-05-2004, 03:47 PM   #1
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Rep: Reputation: 15
DNS setup question


I know that this question isn't strictly linux, so if someone knows a better place to post it then please let me know.

I am setting up a ded. server (which is a first for me) for development purposes. I have a domain registered and BIND installed. What I would normally do is go the the registrar's web management page for the domain and setup the child name servers to point to:
ns1.mydomain.com 1.2.3.4
ns2.mydomain.com 1.2.3.5

However, I have just been informed by the registrar that for the domain in question (.co.uk), I cannot setup child name servers. I can however set the name servers for the domain to be:
ns1.mydomain.com
ns2.mydomain.com

My question is therefore, how do get mydomain.com to point to my server (1.2.3.4/5)? If there are no IP addresses that point to the name servers given to the registrar, then how will dns requests find my name servers?

I could be talking a load of rubbish here, I don't know a great deal on the subject. it just strikes me as a obvious problem.

To summarise.... what do I do?

Many thanks!!

Radam
 
Old 08-05-2004, 05:09 PM   #2
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
If you can only enter your name servers (in your registrar's database), then whenever someone wants to go to a host within your domain (myhost.mydomain.com), the DNS root servers will know to forward these requests to ns1.mydomain.com or ns2.mydomain.com, which will then resolve myhost.mydomain.com to some IP address.

The DNS root servers know what DNS server(s) to forward these requests to because they were informed by your registrar's database.

Does this make sense? I may be rambling as well...
 
Old 08-05-2004, 05:15 PM   #3
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
H
 
Old 08-05-2004, 05:22 PM   #4
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
Hi,

That does seem to make sense. The DNS servers forward my requests to ns1.mydomain.com. But where do they get the IP address for ns1.mydomain.com? I assume even the name server address needs to be resolved to an IP in order for it to be found on the big wide web.

Thanks for your help, and I hope I am on the right track

Radam

PS. Sorry for posting my message containg 'H'!
 
Old 08-05-2004, 05:49 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should be able to type in the DNS server IP. If you use only 'ns1.mydomain.com.' type of nameservers (and no matching IPs anywhere for the other servers), it won't work.
In your place, I'd check how does it look currently. You can use 'dig' program, the command will be
dif @TheServerToAsk ns1.mydomain.com
In the answer section you should get the IP of ns1.mydomain.com.

BTW Can you set primary DNS using the web managemant page? You should be able to do it.
 
Old 08-06-2004, 07:44 AM   #6
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
When you enter your DNS servers in your registrer's database, you don't enter their host names, you enter their IP addresses. That's how my registrar does it.
 
Old 08-07-2004, 02:37 AM   #7
Lostboys
Member
 
Registered: May 2004
Location: California
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
I may be able to help you out with this, but your question is all that clear.

First of all, why do you want to have dns requests sent to you? I.e. Why do you want to resolve internal host names over the internet? Your services and information is provided through ports, not host names. Internal IP addresses (NAT address) do not traverse over the internet. But, if you want to make your dns public you can just port forward on your router port 53, and point it to your dns server.

Do you have multiple public IPs? I would assume not, cuz if you have the gear to support it you would probably already know this stuff.

Here is another shot at what your question might be (seperate answer).

Code:
My question is therefore, how do get mydomain.com to point to my server (1.2.3.4/5)?
You cannot point your public dns record on your registrar to an internal ip address, you have to point it to your public internet address, and forward the ports that you are using for the services you want to provide.

port 80 - web pages
port 25 - smtp
port 53 - dns ( i wouldn't reccomend this)
port 21 - ftp
port 22 - ssh
port 23 - telnet (also not really reccomended)
port 110 - pop3 mail

full list is here http://www.iana.org/assignments/port-numbers

Hope this helps, post back if still having trouble,
Lost
 
Old 08-07-2004, 04:56 AM   #8
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
Ok then folks,

I'll bring you up to date on what has happened so far. It seems that this may be an issue with my registrar. It seems that they have "forwarded my request to the programming department".

To answer some questions.....

Quote:
Do you have multiple public IPs? I would assume not, cuz if you have the gear to support it you would probably already know this stuff.
Actually (in an indignant tone ), I am running a ded. server with 3 public IPs. I have already managed to setup a domain for our house, where we have 8 public IPs. What confused me was the fact that I could not provide my registrar with the IPs of my name servers. (Sorry for the small rant, everyone asks a dozey question from time to time).

I am now under the impression that this is an issue with their site.

Thank you to jdelaros1 and Mara for explaining this. I think that I have now got the correct end of the stick!

Thanks for your help everyone!


Radam
 
Old 08-07-2004, 05:32 AM   #9
Lostboys
Member
 
Registered: May 2004
Location: California
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
A couple of questions and we can have this fixed.

1. How are you connected to the internet? Broadband, t1 or higher?

2. Is the connection being made by a router, or by a computer using multiple nics, and sharing the internet access?

2. You have 8 public ips, do you mean you have 8 connections (like 8 modems) to the internet, or you have 1 internet connection that has a pool of 8 static ips?

3. Is 1.2.3.4/5 just an ip you are using as an example, or is this the internal ip address of the server?

4. Why do you want to host your own dns server?

Assuming that 1.2.3.4/5 is your internal server address, (would be a very odd network to add, but will work), an internet registrar CANNOT point anything directly to this server because it would not be able to find the network that this address would belong to.

In order to have your name servers working, you will need to have ns1.yourdomain.com point to your public ip address of the first dns server or router, or modem, whichever is making your internet connection. On the connection, you will need to then port forward port 53 to dns server 1. And then do the same thing for dns2.

Just to make this clear, you CANNOT point the domain registrars dns records directly to your internal dns server, you can only point the registrars records to a public ip address, and either have your dns server plugged directly into the internet with no firewall (bad idea, make sure to turn of RIP if you do this or your server will bog down to a stop probably), or have some type of firewall security device making the internet connection, and then port forwarding dns traffic to the appropriate internal ip address.

*** EDIT ***
You do not need to use dns to host sub-domains, you can just use apache configuration to do it.

Last edited by Lostboys; 08-07-2004 at 05:37 AM.
 
Old 08-07-2004, 05:47 AM   #10
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
To clear this up then....

I am hosting a dedicated server, with 3 public IPs. It is this machine that I am trying to hook the domain up to.

1. Higher than T1 I am assuming. The server is hosted by a hosting company.

2a. I'm hoping through a router

2b. Once connection with 8 IPs. But thats beside the point, that setup is working fine. I was just illustrating a point.

3. It is an example. It represents a public IP

4. Because I can It is more of a learning experience than anything else. Besides, it works fine at home, I should be able to get it running on a linux box

I am _very_ aware that I cannot (or rather, should not) point a domain to non routing IP address. I am pointing them the to public IPs of my ded. server

However, I am hoping my registrar will solve this problem as soon as they get back to me, so please don't stress your self over this.

Thanks

Adam

PS. Thanks, I didn't know that about apache. However, may still want to have sub-domains for other services. Besides, i'm a stubborn bugger and i'm not about to give up now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
DNS Setup Yomaoni Linux - General 7 03-18-2008 12:54 PM
how to setup DNS stanleytiew Linux - Newbie 2 05-09-2005 03:43 PM
Dns Setup doggy Linux - Newbie 1 04-30-2004 07:12 AM
DNS setup. wr3kt Linux - Networking 0 04-29-2004 05:59 PM

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

All times are GMT -5. The time now is 11:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration