Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 NAT on linux and all is working I can ping an external ip address and skype is on, but cant resolve a domain name when on one of the network computers.The network internal info is
111.111.111.7 -node IP
255.255.255.192 -Mask
111.111.111.1 Gateway
111.111.111.1 DNS
The above info results in the PC not resolving domain names, but can pin ips.
when I change the DNS server to an external dns server it all works.
111.111.111.7 -node IP
255.255.255.192 -Mask
111.111.111.1 Gateway
178.12.32.32 -DNS
My issue is this is not how I set it up on windows servers when doing NAT(I guess maybe because on windows the dns server has root hits) The DHCP has the internal server address and gives all internal ips to the clients and they connect.How do I do this in linux so clients get the ip address scheme
111.111.111.7 -node IP
255.255.255.192 -Mask
111.111.111.1 Gateway
Do you run a DNS on your gateway 111.111.111.1 ?
If not, any computer cannot obtain a name resulotion!
You have two basic posibilities:
1st solution
Run your own DNS software (probably 'bind') on .111.1 and set DNS to .111.1
For basic configuration of bind the following steps are enough:
1. set your ISP DNS (178.12.32.32) in /etc/resolve.conf or set by NetworkManager
2. allow your network to resolve hostnames, set /etc/named.conf : allow-query {111.111.111.1/24;};
3. allow your firewall to access port 53 from your network
4. if you use ipv6 check iptables6
5. check /etc/named.conf if DNS is listening on the correct port and IP address: listen-on port 53 { .111.1; }; listen-on-v6 port 53 { XXXX:XXXX:1; };
2nd solution
Let each computer connect ISP directly. This is very easy, if you use a DHCP in your network, just set the NS record in your DHC server settings.
Do you run a DNS on your gateway 111.111.111.1 ?
If not, any computer cannot obtain a name resulotion!
You have two basic posibilities:
1st solution
Run your own DNS software (probably 'bind') on .111.1 and set DNS to .111.1
For basic configuration of bind the following steps are enough:
1. set your ISP DNS (178.12.32.32) in /etc/resolve.conf or set by NetworkManager
2. allow your network to resolve hostnames, set /etc/named.conf : allow-query {111.111.111.1/24;};
3. allow your firewall to access port 53 from your network
4. if you use ipv6 check iptables6
5. check /etc/named.conf if DNS is listening on the correct port and IP address: listen-on port 53 { .111.1; }; listen-on-v6 port 53 { XXXX:XXXX:1; };
2nd solution
Let each computer connect ISP directly. This is very easy, if you use a DHCP in your network, just set the NS record in your DHC server settings.
Yes thanks, figured out that I needed bind to have my dns as 111.111.111.1 , thanks for your reply
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.