DNS with DHCP router

Hi

I have a home network consisting of two XP machines and a FC4 box. I connect to the internet via DSL-G604T router/modem. The router acts as a DHCP server and appears to be working, I can see all my machies listed in the LAN Clients list. The XP machines can connect to the internet with no problems, but I cannot browse from the linux box.

I have found that if I ping a website (ping www.google.com.au) I can then sometimes browse via firefox. If I change my DNS (in Network setup) to point to my ISP instead of my router it works fine, but I then lose the ability to ping to any of the boxes on the network via their hostname. Its not a big problem but I think something is not configured correctly and I would like to resolve it.

Ant suggestions would be appreciated.
Andrew_GeeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pablouruguayCommented:
you can have 2 dns servers in your net.

cat /etc/resolv.conf
nameserver 200.2.4.10
nameserver 16.73.18.5


or you can add the windows machine in the file /etc/hosts like this

192.168.1.143   windowsXP1
192.168.1.144   windowsXP2




Andrew_GeeAuthor Commented:
I tried the 2 dns servers in the /etc/resolv.conf but it idnt make any difference. I had the following,
nameserver isp dns
nameserver 10.1.1.1

but when I tried to ping the XP nodes by name it still didn't work.

If I use the second solution then I have to make everything static because the dchp server could reverse the 2 xp ip addresses or assign completely differentg ones.
pablouruguayCommented:
what do you have in /etc/named.conf    i need the zones files to configure.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Andrew_GeeAuthor Commented:
Here is the contents of my named.conf file


# cat /etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localdomain" IN {
        type master;
        file "localdomain.zone";
        allow-update { none; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
        file "named.ip6.local";
        allow-update { none; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
};

include "/etc/rndc.key";
pablouruguayCommented:
ok. you dont have a DNS server in your net.... that is the problem i think.... maybe if you configure a DNS server in the net you can connect to both sides.

let me explain.

you have 2 nets ... public and private

you need a zone for private ex. 192.168 // 10.0 // et all
and a zone for your public IP.

is you public ip static or is dynamic?
Andrew_GeeAuthor Commented:
My conection is ADSL, so it is a dynamic ip address.
pablouruguayCommented:
ok. make a private zone in the dns adding your hosts

in FC4 you have a system-config-bind
Andrew_GeeAuthor Commented:
Does that mean I am setting up a basic DNS system on my system?
pablouruguayCommented:
yep i think so. or add you windows xp ips to your /etc/hosts
Andrew_GeeAuthor Commented:
If I add the xp boxes to my /etc/hosts, doesn't that mean I will have to stop using DHCP because the IPs will have to remain static.
pablouruguayCommented:
mmm nop.  

dhcp have a leassess file. if your XP get the ex. 192.168.1.11 all the time this XP logging in your dhcp have the same IP.
Andrew_GeeAuthor Commented:
Sorry, I don't understand what you mean by,
dhcp have a leassess file. if your XP get the ex. 192.168.1.11 all the time this XP logging in your dhcp have the same IP.

I have just run the system-config-bind an I have no idea how that works.
pablouruguayCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.