- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/resolv.conf file always be changed automatica...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 08:57 PM
тАО11-09-2010 08:57 PM
/etc/resolv.conf file always be changed automatically
The file /etc/resolv.conf in HPUX11.23 is always be changed automatically at 5:00am everyday . I fail to find which process or script does it .Who can give me any ideas about it ?or do you have any tools ?
Thank you!
BR
Diao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 09:10 PM
тАО11-09-2010 09:10 PM
Re: /etc/resolv.conf file always be changed automatically
Please check the crontab file is the any entry related to /etc/resolve.conf which updates or change that file, at particular file.
Please check the /var/adm/syslog/syslog.log for the particular time to find the reason behind this.
Hope this solves ur issue
Dont forget to assign points
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 09:24 PM
тАО11-09-2010 09:24 PM
Re: /etc/resolv.conf file always be changed automatically
I checked crontab but find nothing related to the file , and I run the command "find . -type f |xargs grep -l '150.236.34.24' " ,which try to find the files containing "150.236.34.24" ( 150.236.34.24 is the old setting that always overwrite the new setting ) . but find there is no one file in system that contains the old setting .
So I guess maybe there is some scripts will overwrite the file remotely, but I don't know how to get it .
Thank you!
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 01:04 AM
тАО11-10-2010 01:04 AM
Re: /etc/resolv.conf file always be changed automatically
Try to search the in syslog.
Search what are the scripts which are running on perticular 5:00AM.
Search is there any softlink by which this file is uesd at some other place.
Hope this solves ur issue.
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 01:25 AM
тАО11-10-2010 01:25 AM
Re: /etc/resolv.conf file always be changed automatically
I checked the syslog , but found nothing related to resolv.conf file .
Thanks.
BR
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2010 10:51 AM
тАО11-11-2010 10:51 AM
Re: /etc/resolv.conf file always be changed automatically
This is a simple and ugly way to list all the crontabs on HP-UX, check which processes are running around 5am:
# cat /var/spool/cron/crontab.root /var/spool/cron/crontabs/* | grep -v -e ^# -e ^$ | sort -n
This is how to display only the commands without the time:
# for i in `cat /var/spool/cron/crontab.root /var/spool/cron/crontabs/* | awk '!/^#/ {print $6}'
Try the following oneliner, this searches between the crontabs:
# for i in `cat /var/spool/cron/crontab.root /var/spool/cron/crontabs/* | awk '!/^#/ {print $6}' | sort -u`;
do
grep resolv $i
done
#
Regards,
Viktor
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2010 11:10 PM
тАО11-11-2010 11:10 PM
Re: /etc/resolv.conf file always be changed automatically
I tried the first and second commands you mentioned but show nothing .And I tried the third command it showed as below:
server:/tmp# ./dd1
cd /; egrep . etc/hosts etc/hostname* etc/resolv.conf 2>/dev/null ) \
echo "$0: Error: unable to resolve own hostname (\"$hostname\") to a fully qualified address. Please supply option --host." >&2
# resolved, withdrawn, and expired incidents
Can you give me any ideas ?
Thank you!
BR
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2010 03:40 AM
тАО11-12-2010 03:40 AM
Re: /etc/resolv.conf file always be changed automatically
Are there any crontabs on the system at all? Post the outputs of the following:
# ll /var/spool/cron/crontab.root
# ll /var/spool/cron/crontabs/*
Regards,
Viktor
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2010 04:03 AM
тАО11-12-2010 04:03 AM
Re: /etc/resolv.conf file always be changed automatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2010 09:00 PM
тАО11-14-2010 09:00 PM
Re: /etc/resolv.conf file always be changed automatically
There is no output of the 2 commands you mentioned above.
Thank you!
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:12 AM
тАО11-15-2010 12:12 AM
Re: /etc/resolv.conf file always be changed automatically
What is actually changing in resolv.conf everyday (post here the lines)?
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:16 AM
тАО11-15-2010 12:16 AM
Re: /etc/resolv.conf file always be changed automatically
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:21 AM
тАО11-15-2010 12:21 AM
Re: /etc/resolv.conf file always be changed automatically
This is a server or a workstation?
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:26 AM
тАО11-15-2010 12:26 AM
Re: /etc/resolv.conf file always be changed automatically
(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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:27 AM
тАО11-15-2010 12:27 AM
Re: /etc/resolv.conf file always be changed automatically
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 12:32 AM
тАО11-15-2010 12:32 AM
Re: /etc/resolv.conf file always be changed automatically
It is static IP in the server , and I find DHCP_ENABLE[0]=0 in /etc/rc.config.d/netconf file .
Thank you!
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 01:45 AM
тАО11-15-2010 01:45 AM
Re: /etc/resolv.conf file always be changed automatically
Run:
ps -e |grep dhcp
This would tell you if the dhcp daemon is running or not.
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 01:49 AM
тАО11-15-2010 01:49 AM
Re: /etc/resolv.conf file always be changed automatically
Ok , thanks.
No dhcp process found in the server.
Diaoxin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 01:52 AM
тАО11-15-2010 01:52 AM
Re: /etc/resolv.conf file always be changed automatically
ps -e |grep boot
This server is part of a cluster?
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 01:55 AM
тАО11-15-2010 01:55 AM
Re: /etc/resolv.conf file always be changed automatically
No , it is not cluster.
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 02:14 AM
тАО11-15-2010 02:14 AM
Re: /etc/resolv.conf file always be changed automatically
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 04:38 AM
тАО11-15-2010 04:38 AM
Re: /etc/resolv.conf file always be changed automatically
are you changing the file, tripwire (or something) is being run as a scan at 5:00 detecting the change as a monitored file and changing it back.
I've been caught with that before in the past on high security machines, I was only alerted to it when the security team kept getting triggers of file changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 05:52 PM
тАО11-15-2010 05:52 PM
Re: /etc/resolv.conf file always be changed automatically
bootp is not running on the server.
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2010 05:56 PM
тАО11-15-2010 05:56 PM
Re: /etc/resolv.conf file always be changed automatically
I can not find IDS under /opt , and find nothing related to ids when I run "swlist ".
For tripwire, how can I know whether tripwire or the other tool installed ?
Thank you!
DiaoXin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2010 06:55 AM
тАО11-16-2010 06:55 AM
Re: /etc/resolv.conf file always be changed automatically
Check the root's home directory and see if there is a .rhosts file that would allow remsh or rcp to run from another server and copy over the resolv.conf file.