Hi,
I have created primary and Secondry Dns Server i am not getting any errors but master server transfer has started but zone files not updating...my doubt should i create create zone files else server itself create....
# !/bin/bash # A convenience function, to save us some work update_server() { # Read the app id and the directory into a variable APP_ID=$1 DIR=$2 # Create the directory ( if it does not exist already ) if [ ! -d "$HOME/$DIR" ]; then mkdir -p "$HOME/$DIR" fi # Uh-oh, it looks like we still have no directory. Report an error. if [ ! -d "$HOME/$DIR" ]; then # Describe what went wrong echo "ERROR! Cannot create directory $HOME/$DIR!" # Exit with status code 1 ( which indicates an error ) exit 1 fi # Call SteamCMD with the app ID we provided and tell it to install ./bin/steamcmd.sh +login anonymous +force_install_dir "$HOME/$DIR" +app_update $APP_ID validate +quit } # Now the script actually runs update_server ( which we just declared above ) with the id of the application ( 4020 is Garry's Mod ) and the name of the directory we want the server to be hosted from: update_server 4020 "gmodserver" exit 0
$ cat db.example.com $TTL 86400 ; (1 day) $ORIGIN example.com. @ IN SOA ns.example.com. admin.example.com. ( 2015042601 ; serial YYYYMMDDnn 14400 ; refresh (4 hours) 1800 ; retry (30 minutes) 1209600 ; expire (2 weeks) 3600 ) ; minimum (1 hour) @ IN NS ns.example.com. ns IN A 192.168.1.7 localhost IN A 127.0.0.1 sql IN A 192.168.1.100 ftp IN A 192.168.1.101
$ cat db.192.168.1 $TTL 86400 ; (1 day) $ORIGIN 1.168.192.in-addr.arpa. @ IN SOA ns.example.com. admin.example.com. ( 2015042601 ; serial YYYYMMDDnn 14400 ; refresh (4 hours) 1800 ; retry (30 minutes) 1209600 ; expire (2 weeks) 3600 ) ; minimum (1 hour) @ IN NS ns.example.com. 7 IN PTR ns.example.com. 100 IN PTR sql.example.com. 101 IN PTR ftp.example.com.
$ cat /etc/resolv.conf search example.com nameserver 192.168.1.7
$ nslookup linuxquestions.org Server: 192.168.1.7 Address: 192.168.1.7#53 Non-authoritative answer: Name: linuxquestions.org Address: 75.126.162.205 $ nslookup example.com Server: 192.168.1.7 Address: 192.168.1.7#53 *** Can't find example.com: No answer
$ nslookup example.com Server: 192.168.1.7 Address: 192.168.1.7#53 Non-authoritative answer: Name: example.com Address: 93.184.216.34
[root@toystory ~]# cat /etc/rndc.conf key "toystory-key" { algorithm hmac-md5; secret "K9qBsQwusP6430cykS2AeA=="; }; options { default-key "toystory-key"; default-server 127.0.0.1; default-port 953; }; [root@toystory ~]# cat /etc/named.conf key "toystory-key" { algorithm hmac-md5; secret "K9qBsQwusP6430cykS2AeA=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "toystory-key"; }; }; key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; controls { inet 10.249.249.3 port 953 allow { 10.249.249.2; } keys { "wormhole-key"; }; };
[root@wormhole ~]# cat /etc/rndc.conf key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; options { default-key "wormhole-key"; default-server 127.0.0.1; default-port 953; }; [root@wormhole ~]# cat /etc/named.conf key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "wormhole-key"; }; }; server 10.249.249.3 { keys { "wormhole-key"; }; };
[root@toystory ~]# rndc status version: 9.9.4-RedHat-9.9.4-18.el7_1.1 <id:8f9657aa> CPUs found: 1 worker threads: 1 UDP listeners per interface: 1 number of zones: 104 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running [root@toystory ~]# rndc -s wormhole.movie.edu status rndc: connect failed: 10.249.249.2#953: connection refused
[root@wormhole ~]# rndc status version: 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2 CPUs found: 1 worker threads: 1 number of zones: 22 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running