Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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.
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"??
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???
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.