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 am setting up a public DNS server for my registered domain. I have the following problem.
I have a LAN, I use one the hosts (redhat linux box) to setup the DNS server. When I do the DNS query on this machine using the private IP or localhost, everything is fine.
for example:
I can do
> nslookup
>server 192.168.0.103 (private IP of the host)
> mydomain.com
the output is correct
However, if I do it on another machine(windows XP) in the LAN, and I do the exactly the same thing as above. I wanted to qurey the server for the IP of my domain.
I got no answer, saying the "no response from the server".
Another problem is, on both machines, if I use the public IP, then neither of them work.
If you set your DNS server on your XP box to the Linux box, can you resolve other Internet domains?
Do you have iptables running? I believe that the default configuration for RedHat installation is to block all ports. Check the command "iptables -L" to see if it is blocking anything. If it is, you need to change the iptables startup script to allow udp and tcp port 53.
For the problem using the public IP, I'm presuming that you are using port forwarding on your router? If so, then I think that is a problem with most routers. I have the same problem, where it will not forward from the private subnet, to a NAT'ed host on the same subnet.
I am setting up a public DNS server for my registered domain. I have the following problem.
I have a LAN, I use one the hosts (redhat linux box) to setup the DNS server. When I do the DNS query on this machine using the private IP or localhost, everything is fine.
for example:
I can do
> nslookup
>server 192.168.0.103 (private IP of the host)
> mydomain.com
the output is correct
However, if I do it on another machine(windows XP) in the LAN, and I do the exactly the same thing as above. I wanted to qurey the server for the IP of my domain.
I got no answer, saying the "no response from the server".
Another problem is, on both machines, if I use the public IP, then neither of them work.
Can anybody help me? Thanks in advance!
Hmmm... I didn't quite understand... Can you resolve other host names from your DNS machine?
for instance if you do:
> dig www.cnn.com
(use dig instead of nslookup )
What will be the outcome?
If you cant get to the outer world through the DNS server then none of the other machines in your LAN will.
Check the gateway of the DNS server.
And as shubb said, check the firewall policy and enable incoming queries on port 53 from your LAN if it is not already enabled.
Other than that, in the LAN clients in the specify to not to use the proxy (if one) for your domain, or for your network's addresses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.