LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-22-2003, 10:14 PM   #1
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
DNS server configuration with router???


Hi all,

I have a Linux computer connected to internet through a router. I want to configure a DNS server on my Linux machine and direct the outside DNS quiries to my machine through router so that others can reach any machine in my own domain. Can I do it and if yes, how? Can anyone PLEASE help me.

Thanks,
Deepika
 
Old 09-22-2003, 11:01 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i think this is what you're looking for:

http://www.ods.org/
 
Old 09-23-2003, 10:00 AM   #3
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
I don't seem to find any help there regarding my router issue. What solution were you suggesting though?
 
Old 09-23-2003, 12:10 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
sorry i couldn't be more helpful... it's cuz i really don't understand your question completely.

i sent you the link basing myself on this part of your post:

"so that others can reach any machine in my own domain"

the company i posted gives the service of dynamic dns, so anybody can access your box via a name like "deepika.ods.org" from anywhere even if your ip changes...

perhaps if you explain a little more clearly what exactly it is you need i will be able to help you out...
 
Old 09-23-2003, 02:11 PM   #5
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
well, I have my domain named 'deepawan.com' registered with GoDaddy.com.
And now I want to run my own DNS server on Linux m/c say (it is called ns.deepawan.com) so that any other host eg host1.deepawan.com can be reached through this. But since Linux box is connected to internet via router I don't know how can I do it.

Let me know if you need any other detail to make myself more clear.

Thanks for the help.
 
Old 09-23-2003, 02:40 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
is it a linux router?

is "deepawan.com" behind your router or is it hosted somewhere else (godaddy, for example)?
 
Old 09-23-2003, 02:47 PM   #7
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
NO, it's NTEGEAR MR814v2 Wireless router.
And I plan to use "deepawan.com" on my linux computer which is behind the router. This domain is hosted by zoneedit.com currently.

Do you mean if it's hosted by zoneedit.com I can't configure my local DNS server(running on Linux) for domain "depawan.com"??
 
Old 09-23-2003, 03:31 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
no, that's not what i mean. i think it can be done.

i found this in the zoneedit.com faq: "There is no limit to the number of subdomains or records that your zone may contain."

i'm not sure, but PERHAPS it's just a matter of port forwarding 53 on the router (from the external internet ip to the dns server's lan ip) and then just editing the configuration on your zoneedit.com account???

http://www.linux.org/docs/ldp/howto/DNS-HOWTO.html

http://kbserver.netgear.com/kb_web_files/N101145.asp

i'm doing some research and if i find something concrete i'll post it...

meanwhile i'm sure somebody will contribute something enlightening very soon...

hang in there!
 
Old 09-24-2003, 03:54 AM   #9
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
it can be done. but it's complicating a little.


1st. you'd have to tell GoDaddy.com what nameservers will be authoritative for your zone(domain name).

or put another way "what nameserver will resolve your domain name".

if you say "ns.deepawan.com", GoDaddy will pass his info on to the ROOT name servers.

just because i didnt want to say the wrong thing, i did an nslookup on deepawan.com and ns.deepawan.com

they both gave the same ip address of :
24.46.176.178


this means that if you tell GoDaddy that ns.deepawan.com is resonsible for deepawan.com....

all requests will (at the moment) go to 24.46.176.178 and if there is no nameserver there, the hostname will be unresolvable.

if possible, you'd have to specify the nameserver, and the ipaddress of the nameserver. if you can specify the ip of the nameserver then it is easy. but the way i've seen it so far is taht you ahve to give the hostname of the nameserver you want.


if it is the case where you have to give a hostname for nameservers, then u can get a free hostname, point it to your ip address, setup your nameserver, then change your nameserver on GoDaddy to the free domain name you setup:

Example:

i have robert.dynu.net (free) pointing to my box
i have gigahurts.net (not free)

if i setup a nameserver on my box. i could then tell GoDaddy that my nameserver is robert.dynu.net because robert.dynu.net resolved to my real ip but ns.gigahurts.net does not point to anything because there is no record of it on the internet.
 
Old 09-24-2003, 11:19 AM   #10
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
well, here is the summary of what I understand.

If I want to run my own nameserver(say ns.deepawan.com) I need to tell GoDaddy.com(my domain registrar) about it giving both hostname and IP address of Linux machine which is running nameserver. Am I right?

If this is so I think this can be done since GoDaddy allows me to specify both 'nameserver' and 'hostname' information' Like below.
----------------------------------------------------------
Name Server Information (click here to modify)
Nameserver Last Modified
NS.DEEPAWAN.COM 9/24/2003
NS18.ZONEEDIT.COM 9/24/2003

Domain Host Information (click here to add)
Host IP
NS 24.46.176.178 REMOVE
------------------------------------------------

So I think this should do the job. Please confirm.

Thank you all very much for the help.

Regards,
Deepika
 
Old 09-24-2003, 02:40 PM   #11
deepika
Member
 
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
win32sux, thanks a lot. Allowing port forwarding for port 53 to reach my DNS server on LAN works well for me. So now when I say (where 24.46.176.178 is my router's WLAN/external IP address) I get

[deepika@RH80 deepika]$ host pawan.deepika.com 24.46.176.178
Using domain server:
Name: 24.46.176.178
Address: 24.46.176.178#53
Aliases:

pawan.deepika.com has address 192.168.0.3
[deepika@RH80 deepika]$
---------------------------------------------------------------------------
It forwards DNS queries to my LAN DNS server and gets above result which is as expected.

Now what remains is ability to use my nameserver (ns.deepawan.com) without explicitly specifying it on command line (like above 24.46.176.178) which should work after 2 days as today only I have registered my nameserver at Godday.com.

Thanks everyone for the help.

-Deepika
 
  


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
Special DNS Server Configuration sarmadys Linux - Networking 3 08-08-2005 03:40 PM
NFS Broke my Router and DNS Server? Gsee *BSD 2 04-08-2005 01:30 AM
DNS server on redhat 9 with a router sairam71 Linux - Networking 3 12-29-2004 05:30 PM
DNS server setup behind router goodman Linux - Networking 2 04-30-2004 03:42 AM
DNS Server Configuration vinhhv Linux - Networking 1 09-16-2003 07:43 AM

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

All times are GMT -5. The time now is 11:16 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
Open Source Consulting | Domain Registration