Operating System - HP-UX
1830894 Members
2345 Online
110017 Solutions
New Discussion

how to configured DHCP,DNS and sendmail

 
MANISH PATEL_2
Frequent Advisor

how to configured DHCP,DNS and sendmail

Hi Guys,

Can you please let me know the procedure step by step how to configure DHCP, DNS and sendmail in HP UX.

Thanks
Manish
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: how to configured DHCP,DNS and sendmail

Sure, I'll give you a complete step-by-step procedure commensurate with the quality of your question.


1) Study;
2) Read the documentation;
3) Repeat Steps 1 & 2;
4) Implement.

How's that for a step-by-step procedure?

Since you are doing DHCP and DNS, it would probably be wise to study dynamic DNS as well. Oh drat, I used that 's' word again.

If it ain't broke, I can fix that.
Ivan Krastev
Honored Contributor

Re: how to configured DHCP,DNS and sendmail

Aneesh Mohan
Honored Contributor

Re: how to configured DHCP,DNS and sendmail

Hi,


DNS
=======

1) Configuring Primary DNS Sever

1. The primary dns machine,
a) create a list of host names and IP that will be used as the primary dns and the secondary dns
b) create a directory /etc/named.data, in this dir create a file name 'param', in this file list these down,

-d
-n
-z
-b /etc/named.boot
-s

The file 'param' will be actually used to create the DNS data file.

c) Run the command
hosts_to_named -f param
This command creates the server configuration and data files

d)go to /etc/rc.config.d dir and modify the file namesvrs, set the NAMED variable to 1. this is to allow the named process to start at every boot

e) start the DNS with these command
/sbin/init.d/named start

after this the name server should be running

2. Configuring the secondary DNS server


a) at the secondary server, create a dir /etc/named.data
b) copy the boot.sec and boot.sec.save from the /etc/named.boot dir from the primary server to this secondary server.
c)copy the db.127.0.0 and db.cache file from the primary server to sec server's /etc/named.data dir
d) If you did copy the boot.sec.save from the primary server, this enables the data files to be created also in the secondary server, so you also need to copy all files from /etc/named.data from the primary server
e) Change the variable NAMED to 1 at the /etc/rc.config.d/namesvrs on the sec dns server
f) start the named process using /sbin/init.d/named start



3) Configuring the client server


a) at the client machine, in the file /etc/nsswitch.conf, you can specify below:

hosts: dns files

this means that the the DNS will be used first instead of the /etc/hosts file for host name resolution

b) at the /etc/resolv.conf file specify below:

nameserver
nameserver


After all this, you can use the nslookup command to test the DNS from the client


SENDMAIL
==================

- Add a record to /etc/hosts reflecting the exchange servers IP address and name.
10.10.1.36

- Update a record in /etc/mail/sendmail.cf to include the Exchange servers name, in the file search for the following line then add your Exchange server name after DS.
# "Smart" relay host (may be null)
DS

- Restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

- If you already haven't, you may need to configure your DNS so when you send to outside addresses it can resolve the name. Thats just a matter of adding your DNS server to /etc/hosts and adding a record to /etc/resolv.conf.


For cheking : sendmail -d8.99 -d38.99 abc@yahoo.com


Steven E. Protter
Exalted Contributor

Re: how to configured DHCP,DNS and sendmail

Shalom Manish,

It is not normal to set up a sendmail server and DHCP at the same time. Mail servers need to have a fixed IP address so that senders and DNS servers can find them.

Quick fix: All of the above can be done by sam. Its not good systems administration to do this, but you can get through the checklist quickly, if you really want to work on a system and not pass an exam or job interview.

Default sendmail /etc/rc.config.d/mailservs

Change the default zero to 1 and sendmail is ready to get mail. How users are going to find the server if it uses DHCP is a mystery to me.

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
whiteknight
Honored Contributor

Re: how to configured DHCP,DNS and sendmail

Manish,

here is ther reference
HP-UX Mailing Services Administratorâ s Guide
http://docs.hp.com/en/B2355-91064/index.html

DHCP/DNS
HP-UX IP Address and Client Management Administrator's Guide

http://docs.hp.com/en/B2355-90775/index.html


WK
please assign points
Problem never ends, you must know how to fix it
MANISH PATEL_2
Frequent Advisor

Re: how to configured DHCP,DNS and sendmail

To all,

Thank you very much for your help.
MANISH PATEL_2
Frequent Advisor

Re: how to configured DHCP,DNS and sendmail

.