Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I put a Linux server on a new domain?

Status
Not open for further replies.

DawnP

IS-IT--Management
Sep 25, 2003
94
US
On a SUSE Linux server, how do I change domains? I want to put it on a new domain.
 
Did you mean change your existing DNS ? or ?
Good Luck...:)
 
Well, it's been existing on domain "xyz", that domain is going away, and I want to know how to put it on my new domain "123".
 
Where are your nameservers?
If you use external nameservers you need to give the
hosting company, or provider the new domain name and
any changes for individual hosts.

If you are running your own dns I suggest you look
at the DNS howto and follow an example like this.

From named.conf remove the old entries or edit them.
Sonmething like this.
Code:
zone "pzone.ho" in {
      type master;
      file "pzone.znf";
};

zone "3.168.192.in-addr.arpa" in {
      type master;
      file "192.168.3";
};

From your /var/named(or wherever your zone files
are kept)change the zonefile information and
reverse file information.

Zonefile:
Code:
$TTL 3D
@       IN   SOA   ns.pzone.ho.  root.ourhouse.net. (
        200207211       ; serial
        6H              ; refresh
        1H              ; retry
        6W              ; expire
        5D)             ; minimum

       IN NS    ns
       IN MX    10 pmail.pzone.ho.


@               IN A            192.168.3.4

ns              IN A            192.168.3.4

pmail           IN A            192.168.3.3

diggity         IN A            192.168.3.2



skav            IN CNAME                diggity
skag            IN CNAME                pmail
buggy           IN CNAME                ns

Make sure you increment the serial.

For the in-addr-arpa lookups(PTR file):
Code:
 $TTL 3D
@       IN      SOA  ns.pzone.ho  root.localhost.       (
        200207211       ; serial
        6H              ; refresh
        1H              ; retry
        6W              ; expire
        5D)             ; minimum

        IN NS   ns.pzone.ho.

4       IN PTR  ns.pzone.ho.
3       IN PTR  pmail.pzone.ho.
1       IN PTR  diggity.pzone.ho.

Again increment the serial after editing.


Then run some queries:
Code:
nslookup -sil skav.pzone.ho
Server:         192.168.1.45
Address:        192.168.1.45#53

skav.pzone.ho   canonical name = diggity.pzone.ho.
Name:   diggity.pzone.ho
Address: 192.168.3.2

nslookup -sil buggy.pzone.ho
Server:         192.168.1.45
Address:        192.168.1.45#53

buggy.pzone.ho  canonical name = ns.pzone.ho.
Name:   ns.pzone.ho
Address: 192.168.3.4

If you need more help my consulting fees are very reasonable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top