Krishnavanvari.yolasite.com



NPL – Experiment 8 – To install and configure DNS ServerSTEP1-lab309b@Lab309:~$ sudo suroot@Lab309:/home/lab309b# apt-get install bind9Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: libocsync0 libowncloudsync0 libqtkeychain0 linux-headers-3.19.0-25 linux-headers-3.19.0-25-generic linux-image-3.19.0-25-generic linux-image-extra-3.19.0-25-generic python-chardet-whl python-colorama python-colorama-whl python-distlib python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl python-wheelUse 'apt-get autoremove' to remove them.The following extra packages will be installed: bind9-host bind9utils dnsutils libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblwres90Suggested packages: bind9-doc rblcheckThe following NEW packages will be installed: bind9 bind9utilsThe following packages will be upgraded: bind9-host dnsutils libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblwres908 upgraded, 2 newly installed, 0 to remove and 77 not upgraded.Need to get 1,475 kB of archives.After this operation, 1,636 kB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 trusty-updates/main bind9-host amd64 1:9.9.5.dfsg-3ubuntu0.8 [46.3 kB]Get:2 trusty-updates/main dnsutils amd64 1:9.9.5.dfsg-3ubuntu0.8 [96.9 kB]Get:3 trusty-updates/main libisc95 amd64 1:9.9.5.dfsg-3ubuntu0.8 [147 kB]Get:4 trusty-updates/main libdns100 amd64 1:9.9.5.dfsg-3ubuntu0.8 [645 kB]Get:5 trusty-updates/main libisccc90 amd64 1:9.9.5.dfsg-3ubuntu0.8 [15.7 kB]Get:6 trusty-updates/main libisccfg90 amd64 1:9.9.5.dfsg-3ubuntu0.8 [36.2 kB]Get:7 trusty-updates/main liblwres90 amd64 1:9.9.5.dfsg-3ubuntu0.8 [32.8 kB]Get:8 trusty-updates/main libbind9-90 amd64 1:9.9.5.dfsg-3ubuntu0.8 [22.0 kB]Get:9 trusty-updates/main bind9utils amd64 1:9.9.5.dfsg-3ubuntu0.8 [146 kB]Get:10 trusty-updates/main bind9 amd64 1:9.9.5.dfsg-3ubuntu0.8 [287 kB]Fetched 1,475 kB in 1min 16s (19.2 kB/s) Preconfiguring packages ...(Reading database ... 216549 files and directories currently installed.)Preparing to unpack .../bind9-host_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking bind9-host (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../dnsutils_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking dnsutils (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../libisc95_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking libisc95 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../libdns100_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking libdns100 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../libisccc90_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking libisccc90 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../libisccfg90_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking libisccfg90 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../liblwres90_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking liblwres90 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Preparing to unpack .../libbind9-90_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking libbind9-90 (1:9.9.5.dfsg-3ubuntu0.8) over (1:9.9.5.dfsg-3ubuntu0.7) ...Selecting previously unselected package bind9utils.Preparing to unpack .../bind9utils_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking bind9utils (1:9.9.5.dfsg-3ubuntu0.8) ...Selecting previously unselected package bind9.Preparing to unpack .../bind9_1%3a9.9.5.dfsg-3ubuntu0.8_amd64.deb ...Unpacking bind9 (1:9.9.5.dfsg-3ubuntu0.8) ...Processing triggers for man-db (2.6.7.1-1ubuntu1) ...Processing triggers for ureadahead (0.100.0-16) ...ureadahead will be reprofiled on next rebootProcessing triggers for ufw (0.34~rc-0ubuntu2) ...Setting up libisc95 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up libdns100 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up libisccc90 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up libisccfg90 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up libbind9-90 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up liblwres90 (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up bind9-host (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up dnsutils (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up bind9utils (1:9.9.5.dfsg-3ubuntu0.8) ...Setting up bind9 (1:9.9.5.dfsg-3ubuntu0.8) ...Adding group `bind' (GID 141) ...Done.Adding system user `bind' (UID 133) ...Adding new user `bind' (UID 133) with group `bind' ...Not creating home directory `/var/cache/bind'.wrote key file "/etc/bind/rndc.key"# * Starting domain name service... bind9 [ OK ]Processing triggers for libc-bin (2.19-0ubuntu6.7) ...Processing triggers for ureadahead (0.100.0-16) ...Processing triggers for ufw (0.34~rc-0ubuntu2) ...STEP 2-root@Lab309:/home/lab309b# gedit /etc/bind/named.conf.options(gedit:6973): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files(gedit:6973): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service filesroot@Lab309:/home/lab309b# service bind9 restart * Stopping domain name service... bind9 waiting for pid 6941 to die [ OK ] * Starting domain name service... bind9 [ OK ]STEP 3-root@Lab309:/home/lab309b# gedit /etc/resolv.conf(gedit:7104): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files(gedit:7104): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service filesSTEP 4-root@Lab309:/home/lab309b# dig ; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> ;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31967;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4096;; QUESTION SECTION:;.INA;; ANSWER SECTION:.142INA216.58.199.164;; AUTHORITY SECTION:.19912INNSc.root-..19912INNSd.root-..19912INNSb.root-..19912INNSj.root-..19912INNSh.root-..19912INNSa.root-..19912INNSm.root-..19912INNSl.root-..19912INNSg.root-..19912INNSi.root-..19912INNSk.root-..19912INNSe.root-..19912INNSf.root-.;; Query time: 745 msec;; SERVER: 127.0.0.1#53(127.0.0.1);; WHEN: Sat Mar 26 11:30:39 IST 2016;; MSG SIZE rcvd: 270root@Lab309:/home/lab309b# dig ; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> ;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19844;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4096;; QUESTION SECTION:;.INA;; ANSWER SECTION:.133INA216.58.199.164;; AUTHORITY SECTION:.19903INNSj.root-..19903INNSa.root-..19903INNSf.root-..19903INNSb.root-..19903INNSe.root-..19903INNSc.root-..19903INNSl.root-..19903INNSd.root-..19903INNSi.root-..19903INNSm.root-..19903INNSk.root-..19903INNSg.root-..19903INNSh.root-.;; Query time: 1 msec;; SERVER: 127.0.0.1#53(127.0.0.1);; WHEN: Sat Mar 26 11:30:48 IST 2016;; MSG SIZE rcvd: 270root@Lab309:/home/lab309b# dig ; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> ;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24994;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4096;; QUESTION SECTION:;.INA;; ANSWER SECTION:.104INA216.58.199.164;; AUTHORITY SECTION:.19874INNSh.root-..19874INNSc.root-..19874INNSe.root-..19874INNSi.root-..19874INNSf.root-..19874INNSa.root-..19874INNSl.root-..19874INNSd.root-..19874INNSb.root-..19874INNSm.root-..19874INNSj.root-..19874INNSg.root-..19874INNSk.root-.;; Query time: 0 msec;; SERVER: 127.0.0.1#53(127.0.0.1);; WHEN: Sat Mar 26 11:31:17 IST 2016;; MSG SIZE rcvd: 270root@Lab309:/home/lab309b#STEP 5-root@Lab309:/home/lab309b# cp /etc/bind/db.local /etc/bind/db.root@Lab309:/home/lab309b# gedit /etc/bind/db.STEP 6-root@Lab309:/home/lab309b# cp /etc/bind/db.127 /etc/bind/db.192root@Lab309:/home/lab309b# gedit /etc/bind/db.192STEP 7-root@Lab309:/home/lab309b# gedit /etc/bind/named.conf.local(gedit:7386): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files(gedit:7386): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service filesroot@Lab309:/home/lab309b# service bind9 restart * Stopping domain name service... bind9 waiting for pid 7075 to die [ OK ] * Starting domain name service... bind9 [ OK ]STEP 8-root@Lab309:/home/lab309b# nslookup Server:127.0.0.1Address:127.0.0.1#53** server can't find : NXDOMAIN ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download