the output of cat /etc/hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 alpha.paletteng.com alpha localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.2.188 alpha.paletteng.com alpha
the ouput from cat /etc/resolv.conf file is:
search paletteng.com
nameserver 192.168.2.100
nameserver 192.168.2.188
the output from dig mydomain.com is:
; <<>> DiG 9.3.4-P1 <<>> paletteng.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31715
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;paletteng.com. IN MX
;; ANSWER SECTION:
paletteng.com. 14400 IN MX 0 paletteng.com.
;; AUTHORITY SECTION:
paletteng.com. 6717 IN NS ns2.hostingseries43.net.
paletteng.com. 6717 IN NS ns.hostingseries43.net.
;; ADDITIONAL SECTION:
paletteng.com. 6717 IN A 85.13.243.2
ns2.hostingseries43.net. 150247 IN A 85.13.243.3
ns.hostingseries43.net. 150247 IN A 85.13.243.2
;; Query time: 3915 msec
;; SERVER: 192.168.2.100#53(192.168.2.100)
;; WHEN: Tue Feb 3 13:08:07 2009
;; MSG SIZE rcvd: 149
the dig mydomain any gives:
; <<>> DiG 9.3.4-P1 <<>> paletteng.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59774
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;paletteng.com. IN ANY
;; ANSWER SECTION:
paletteng.com. 12890 IN MX 0 paletteng.com.
paletteng.com. 5207 IN A 85.13.243.2
paletteng.com. 5207 IN NS ns2.hostingseries43.net.
paletteng.com. 5207 IN NS ns.hostingseries43.net.
;; AUTHORITY SECTION:
paletteng.com. 5207 IN NS ns.hostingseries43.net.
paletteng.com. 5207 IN NS ns2.hostingseries43.net.
;; ADDITIONAL SECTION:
paletteng.com. 5207 IN A 85.13.243.2
ns2.hostingseries43.net. 148737 IN A 85.13.243.3
ns.hostingseries43.net. 148737 IN A 85.13.243.2
;; Query time: 4 msec
;; SERVER: 192.168.2.100#53(192.168.2.100)
;; WHEN: Tue Feb 3 13:33:17 2009
;; MSG SIZE rcvd: 193
host `hostname` gives:
Host alpha.paletteng.com not found: 3(NXDOMAIN)
paletteng.com.rev.zone file
$ORIGIN 2.168.192.in-addr.arpa. ;
$TTL 86400 @ IN SOA alpha.paletteng.com. root.localhost. (
2008020402 ; serial
10800 ; REFRESH 3 hour
10800 ; retry after 3 hours
604800 ; expire after 1 week
86400) ; Min TTL of 1 day 2.168.192.in-addr.arpa. NS alpha.paletteng.com.
188.2.168.192.in-addr.arpa. IN PTR paletteng.com.
paletteng.com.zone file:
$ORIGIN paletteng.com.
$TTL 3600 @ IN SOA alpha.paletteng.com. root.localhost. (
2008020403 ; Serial 4char year 2mm 2dd 2vv
10800 ; REFRESH
10800 ; retry after 3 hours which forces it on the slave
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day paletteng.com. IN NS alpha.paletteng.com. ;note paletteng.com. IN A 192.168.2.188
www IN A 192.168.2.188
site1.paletteng.com. IN A 192.168.2.188
site2.paletteng.com. IN A 192.168.2.188
localhost A 127.0.0.1
the named.conf file is
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
}; |