resolv.conf and DNS configration


 
Thread Tools Search this Thread
Operating Systems AIX resolv.conf and DNS configration
# 1  
Old 03-15-2010
resolv.conf and DNS configration

Guys,


I have enabled the resolv.conf to be configured with our DNS Network

and it's configured when I ping any hostname in my Network from the server it's giving me the hostname of that machine (witch mean it's working fine )

but I‘m facing slowness in my connection when I rename the resolv.conf to another name it's work fain when I return the original name of resolv.conf slowness came again .

Pls advice in this...
ITHelper
# 2  
Old 03-15-2010
You mean that you are changing contents of resolv.conf file?? if so please provide content of the file
# 3  
Old 03-15-2010
If I understand you correctly it works fine with the resolv.conf file in place but it's just slow (actually what is slow)...So after the rename of the resolv.conf file things speed up again. I would suggest looking at the netsvc.conf and see how it is configured and what values due you have in the resolv.conf file?
# 4  
Old 03-15-2010
To be honest i do not know exactly what you are doing and what you want to achieve. Please restate your requirements if the (generic) explanation below is not covering your needs.

To enable the name resolution via DNS the system has to be told where to ask - i.e. what the IP address of the name server is. This information is stored in /etc/resolv.conf.

If you execute, for instance, a "ping remote.host.com" the following happens:
  1. your host notices that "remote.host.com" is no IP-address and attempts to resolve it.
  2. your host looks up /etc/netsvc.conf to find out which method(s) of name resolution (DNS, NIS, /etc/hosts) it should use and in which order of precedence
  3. in case of DNS your host sends a request to the DNS server identified in /etc/resolv.conf and waits until it answers or the timeout value is reached
  4. the DNS server answers with an IP-address (for a name) or a name (for an IP address)
  5. your host issues "ping IP-address" with the IP-address provided by your name resolution method.

If now the name resolution is significantly slower with DNS than it is otherwise (maybe a local /etc/hosts with the same information?) probably the answer from your name server arrives late - maybe because of network congestion, maybe because the name server is under load, maybe something else.

To investigate possible causes for such a problem you can do nothing else than carefully testing and approving/disproving the various possible reasons.

I hope this helps.

bakunin
# 5  
Old 03-16-2010
Please provide me the resolv.conf file settings, let me compeer it with my exist file
ITHelper
# 6  
Old 03-16-2010
seems like a DNS issue

here is a sample resolv.conf from one of my machines:

Code:
nameserver      x.x.x.x
nameserver      x.x.x.x
nameserver      x.x.x.x
domain sub.domain.at
search sub.domain.at sub.domain.1.at sub.domain.2.at
options         attempts:1
options         timeout:1

as you can see, I'm using 3 nameservers
# 7  
Old 03-16-2010
I dont have in my resolv.conf file included these options options attempts:1
options timeout:1
could you try to remove them?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

2. UNIX for Dummies Questions & Answers

DNS server - /etc/resolv.conf file issue

Hi, Am trying to configure DNS server and trying to keep the information in /etc/resolv.conf file as: search server nameserver 192.168.0.10 when i restart the network service with #service network restart, resolv.conf file is changing as: nameserver 192.168.0.10 search server -... (5 Replies)
Discussion started by: raosr020
5 Replies

3. Red Hat

Issue on resolv.conf

Hi all, :( I am facing issue while I have updated in resolv.conf, after nework service restart, it was automatically deleted IP from resolv.conf file. Could you please let me know what is the reason resolv.conf deleted any IP which I have manually updated, but it store only my router IP... (3 Replies)
Discussion started by: Pradipta Kumar
3 Replies

4. Ubuntu

resolv.conf

Hi, My resolv.conf keeps overwritten. I want to have it to just keep the setting that I put in there. I tried a few solutions I found using google. like supersede domain-name "xxx", prepend domain-name-servers xxx.xxx.xxx.xxx; This does'nt work. I also tried to just chmod the file to... (4 Replies)
Discussion started by: jld
4 Replies

5. UNIX for Dummies Questions & Answers

resolv.conf

Hi everyone A quick question during a audit this was determined to be a security issue In the resolv.conf there is a “.” At the end of the domain name Like this domain mydomain.com. I which to understand the function or significance of the . thk (3 Replies)
Discussion started by: Ex-Capsa
3 Replies

6. Shell Programming and Scripting

resolv.conf

HI ALL I am making a script,That will does the following,I am in search of ideas 1.Script will comment all existing the entries in resolve.conf 2.Add new entries like this abc.example.com 192.168.1.x I can use sed to add comment. (8 Replies)
Discussion started by: aliahsan81
8 Replies

7. Solaris

resolv.conf & the internet

Hi I have DNS setup on Solaris 10 thought it isn't reoslveing Internet addresses properly If I traceroute The UNIX and Linux Forums - the Top UNIX & Linux Q&A on the Web, I get to a hop to my DSL router but no further hops - DNS Client & Multicast services are running - nsswitch.conf is... (1 Reply)
Discussion started by: stevie_velvet
1 Replies

8. SuSE

Suse 10 resolv.conf

I want to have 7 search domains in my resolv.conf, but it seems to like only the first six. I read somewhere that the OS will only recognize the first 6 (or the first 154 characters). Is that the case with SUSE 10? thx -Kevin (2 Replies)
Discussion started by: kjbaumann
2 Replies

9. UNIX for Dummies Questions & Answers

dns and resolv.conf

Hi ,,still struggling with unix ,,the system is running sco openserver release 5 and have dsl installed ,, the dsl modem is a bt router which in turn is connected to a vpn hardware router,, which also serves internet to the whole network ,, but i still cant connect to the internet via the unix box... (10 Replies)
Discussion started by: b03der
10 Replies

10. IP Networking

/etc/resolv.conf

I am new to unix. I have edited the /etc/resolv.conf. It shows domain name ip address ip address These are the same ips of the dns I use for windows. Still I get no name resolution on the internet. I can ping external ip's is there anything else I need to check? (1 Reply)
Discussion started by: rpnhavoc
1 Replies
Login or Register to Ask a Question