View Full Version : server check outside dns before local


reaky
there is a problem faceing me i can't understand it
i have a smaal network (fedora+ xp)
a have the dns in my server
this server is connected to the internet by adsl modem
now the problem is
when i ping the server by hostname it be so slow to give me the replay
but the time of the replay being good and fast
second when i do ssh by ip
he do it fast and ask me for password fast
but it take a long time to check the password
all these cases happend when i dissconnect from the internet (unplag network cable from the external interface
when i put the cable of the modem
i every thing being ok ssh is fast and ping is fast
i try to dig the server
i found that it go to the external dns to get the request and come again to the local
i don't understand why this happend
why it go to outside dns and not look to the local dns first
can anyone help me please

alaa
how does your internal dns work??
are you running some server wala just plain hosts files??

cheers,
Alaa

reaky
yes i run some internal servers like MYSQL ,ORACLE, GATEWAY
ALL in the sane server exept ORACLE

alaa
la2 I meant do you have a dns server running on your lan somewhere??

cheers,
Alaa

uniball
hey bassam, you didn't fix this problem yet ?
that's what we gain from admins testing the network nodes and saying that they are not working just because the laptop they are testing with is closed :P
alaa: yes, they are running bind.

RedHat
Your question is not clear. Is the machines has only your local DNS server only ? i.e in Fedora:

cat /etc/resolv.conf

You should see "nameserver x.x.x.x". What is there, is it your local DNS ? if not make it pointing to the local DNS. If yes and still your DNS server is the one always go outside to resolve, you misconfigured your DNS then.

You need to configure BIND so it is master to your local domain, and you need to run DNS Caching to enhance performance of DNS.

I would say it is your DNS Server configuration.