1829596 Members
2092 Online
109992 Solutions
New Discussion

DNS log in HP-UX

 
Khashru
Valued Contributor

DNS log in HP-UX

What i need to modify in /etc/syslog.conf to send dns log (named) to a separate file instead of syslog.
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: DNS log in HP-UX

As this is the Linux forum, I'm unsure what syslog service bind is configured to use.

But generally, you'd not log to syslog if you didn't want the system logger to handle it, you'd modify the bind configuration to use 'file ' instead of 'syslog '.
One long-haired git at your service...
Matti_Kurkela
Honored Contributor

Re: DNS log in HP-UX

The standard syslog can direct log messages based on facility and category identifiers only. By changing only the syslog.conf file, you cannot redirect the logs of one individual daemon unless the daemon is already set up to use a facility identifier is not used by anything else.

I'm afraid the standard syslog category for named is "daemon", which is shared by several other daemons.

So, the first task would be to reconfigure named to use some other syslog facility identifier, like "local1". After making this change, you can configure syslog to re-direct all messages with facility id "local1" to anywhere you like.

If all you want is to log to a file on the local host, it's simpler to use the Stuart's idea and change the named configuration to log directly to a given file rather than to syslog.

MK
MK
Steven E. Protter
Exalted Contributor

Re: DNS log in HP-UX

Shalom,

Actually, you can modify /etc/named.conf to log to any file you want.

BIND is a very standard implemntation on HP-UX assuming you are using version 9.

http://www.zytrax.com/books/dns/ch7/
http://www.learning-solaris.com/index.php/troubleshooting-the-dns-server-by-using-basic-utilities/

With me, the last link is best.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Krastev
Honored Contributor

Re: DNS log in HP-UX