So much of DNS problem. I have done the following way,
see if it can help you. Gurus please correct me if I am wrong. I hope I did not miss 
out anything while writing this.

regds
Singh


I want to create the following domains:
  linux.mydomain.com     192.168.1.100
  www.mydomain.com       192.168.1.95
  ftp.mydomain.com       192.168.1.96

   My m/c ip is 192.168.1.100.

1. Create ip alias.
a. cd /etc/sysconfig/network-scripts
   cp ifcfg-eth0  ifcfg-eth0:0
   cp ifcfg-eth0  ifcfg-eth0:1
   vi ifcfg-eth0:0
       ip address = 192.168.1.95
   vi ifcfg-eth0:1
       ip address = 192.168.1.96
2. Restart network service. 
       /etc/rc.d/init.d/network   restart
3. Test the ip address by 'pinging' & 'ifconfig' . u
should be able to see & ping all ipaddresses.

4. Install name files from CD if it is not installed
(I don't remember which files).
5. vi /etc/named.conf. add the following lines. BE
CAREFUL OF THE SYNTEX.

       zone "mydomain.com" {
             type master;
             file "named.forward";
       };

       zone "1.168.192.in-addr.arpa" {
             type master;
             file "named.reverse";
       };

6. cp /var/named/named.local /var/named/named.forward
7. cp /var/named/named.local /var/named/named.reverse

8. vi /var/named/named.forward & change it as follows.
BE CAREFUL OF THE SYNTEX

    @ IN SOA mydomain.com.   root.mydomain.com.
    (          2000120800   ;   serial
               28800        ;   refresh
               14400        ;   retry
               3600000      ;   expire
               86400        ;   default_ttl
               )
    @    IN NS  linux.mydomain.com.
    @    IN NS  linux.mydomain.com.
    @    IN A   192.168.1.100
    linux   IN A   192.168.1.100
    www     IN A   192.168.1.95
    ftp    IN A   192.168.1.96

9.  vi /var/named/named.reverse & change it as
follows. BE CAREFUL OF THE SYNTEX

    @ IN SOA localhost.   root.localhost.
    (          2000120800   ;   serial
               28800        ;   refresh
               14400        ;   retry
               3600000      ;   expire
               86400        ;   default_ttl
               )
    @    IN NS  localhost.
    100  IN   PTR  linux.mydomain.com.
    95  IN   PTR  www.mydomain.com.
    96  IN   PTR  ftp.mydomain.com.

10. vi /etc/resolv.conf
        search localhost
        nameserver 192.168.1.100


11. Restart named . /etc/rc.d/init.d/named restart
12. Test it by nslookup.


_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

Participate in crazy auctions at http://auctions.rediff.com/auctions/




----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to