Operating System - HP-UX
1753964 Members
7263 Online
108811 Solutions
New Discussion юеВ

Re: /etc/resolv.conf file always be changed automatically

 
Horia Chirculescu
Honored Contributor

Re: /etc/resolv.conf file always be changed automatically

>changed automatically at 5:00am everyday

What is actually changing in resolv.conf everyday (post here the lines)?

Horia.
Best regards from Romania,
Horia.
diaoxin
Frequent Advisor

Re: /etc/resolv.conf file always be changed automatically

Hi Horia,
There are 3 lines concerning of " namesever" setting,because we have 3 DNS servers. assume that the 3 lines are as below :
nameserver 1.1.1.1
nameserver 2.2.2.2
nameserver 3.3.3.3
But at 5:00am everyday , the 3 IPs in the 3 lines will be changed to another settings which are not the correct IP of our DNS.

Thank you!
DiaoXin
Horia Chirculescu
Honored Contributor

Re: /etc/resolv.conf file always be changed automatically

Do you use DHCP? Check for dhcp client running on your HPUX box.

This is a server or a workstation?

Best regards,
Horia.
Best regards from Romania,
Horia.
Matti_Kurkela
Honored Contributor

Re: /etc/resolv.conf file always be changed automatically

Is your system configured to use DHCP instead of using static IP address? Perhaps your DHCP server requires the system to renew address leases daily, and the lease includes DNS configuration.

(Check /etc/rc.config.d/netconf; if it says DHCP_ENABLE[x]=1 where x is the number of an interface configuration block, then DHCP is in use. Then check the timestamp of /etc/dhcpclient.data: if it's updated at 5:00am too, then )

Please read "man dhcpdb2conf" to see a list of things DHCP can affect. In addition to network interface settings, it includes several things in files /etc/resolv.conf, /etc/rc.config.d/namesvrs and /etc/rc.config.d/netdaemons.

MK
MK
diaoxin
Frequent Advisor

Re: /etc/resolv.conf file always be changed automatically

Hi Horia,
It is a server and it does not use DHCP , the server IP is static IP . But can you tell me how to check DHCP in the server ? I cannot find the configuration file under /etc/rc.config.d

Thank you!
Diaoxin
diaoxin
Frequent Advisor

Re: /etc/resolv.conf file always be changed automatically

Hi MK,

It is static IP in the server , and I find DHCP_ENABLE[0]=0 in /etc/rc.config.d/netconf file .

Thank you!
DiaoXin
Horia Chirculescu
Honored Contributor

Re: /etc/resolv.conf file always be changed automatically

>But can you tell me how to check DHCP in

Run:

ps -e |grep dhcp

This would tell you if the dhcp daemon is running or not.

Best regards,
Horia.
Best regards from Romania,
Horia.
diaoxin
Frequent Advisor

Re: /etc/resolv.conf file always be changed automatically

Hi Horia,
Ok , thanks.
No dhcp process found in the server.

Diaoxin
Horia Chirculescu
Honored Contributor

Re: /etc/resolv.conf file always be changed automatically

Run this:

ps -e |grep boot

This server is part of a cluster?

Horia.
Best regards from Romania,
Horia.
diaoxin
Frequent Advisor

Re: /etc/resolv.conf file always be changed automatically

Hi Horia,
No , it is not cluster.

DiaoXin