Hello
I have created a VPS (wmware) with Apache2, MySQL, PHP5.6, phpMyAdmin, Bind9, Postfix, Dovecot, vsftpd and the necessary extensions, then I've dumped the database and uploaded the files and I can view my website correctly using Private IP.
In addition I have a domain contracted www.nettgood.com anyo to point to my server and that I raise my site and I do not manage to create the DNS Server with the BIND9.
Please help!
Below I leave the network configuration of my VPS and Bind9.
Server Details:
Ubuntu Server 14.04.5
Private IP: 192.168.126.128
Public IP: 82.165.143.100 (Fixed)
File /etc/hostname: mail
File /etc/hosts:
File: /etc/network/interfaces
File: /etc/resolv.conf
File: /etc/bind/named.conf
File: /etc/bind/db.nettgood.com
File: /etc/bind/db.82
And when I do a nslookup to "nettgood.com" or "www.nettgood.com" or "82.165.143.100" I get the following:
Please help... Thanks You Very Much!
Note:
I clarify that the domain www.nettgood.com is currently targeting the DNS of a hosting company and are NOT pointing to the VPS DNS (vmware). As soon as I have everything well configured I would point it to the VPS DNS.
MSJ
I have created a VPS (wmware) with Apache2, MySQL, PHP5.6, phpMyAdmin, Bind9, Postfix, Dovecot, vsftpd and the necessary extensions, then I've dumped the database and uploaded the files and I can view my website correctly using Private IP.
In addition I have a domain contracted www.nettgood.com anyo to point to my server and that I raise my site and I do not manage to create the DNS Server with the BIND9.
Please help!
Below I leave the network configuration of my VPS and Bind9.
Server Details:
Ubuntu Server 14.04.5
Private IP: 192.168.126.128
Public IP: 82.165.143.100 (Fixed)
File /etc/hostname: mail
File /etc/hosts:
Code:
127.0.0.1 localhost.localdomain localhost
127.0.1.1 mail
82.165.143.100 mail.nettgood.com mail
# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
Code:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# The secondary network interface
auto eth1
iface eth1 inet static
address 82.165.143.100
netmask 255.255.255.0
Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
domainserver nettgood.com
nameserver 82.165.143.100
search nettgood.com
Code:
// If you are just adding zones, please do that in /etc/bind/named.conf.local include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
//Zona directa
zone "www.nettgood.com"{
type hint;
file "/etc/bind/db.nettgood.com";
};
//Zona directa
zone "www.nettgood.com"{
type master;
file "/etc/bind/db.nettgood.com";
};
//Zona inversa
zone "143.165.82.in-addr.arpa"{
type master;
file "/etc/bind/db.82";
};
File: /etc/bind/db.nettgood.com
Code:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA nettgood.com. root.nettgood.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN A 82.165.143.100
;
@ IN NS ns1.nettgood.com.
@ IN NS ns2.nettgood.com.
ns1 IN A 82.165.143.100
ns2 IN A 82.165.143.100
www IN A 82.165.143.100
ftp IN CNAME ns1.nettgood.com.
;
Code:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA nettgood.com. nettgood.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
0 IN NS nettgood.com.
100 IN PTR nettgood.com.
And when I do a nslookup to "nettgood.com" or "www.nettgood.com" or "82.165.143.100" I get the following:
Code:
nettgood@ng01:~$ nslookup nettgood.com
Server: 82.165.143.100
Address: 82.165.143.100#53
Non-authoritative answer:
Name: nettgood.com
Address: 164.132.190.162
nettgood@ng01:~$ nslookup www.nettgood.com
Server: 82.165.143.100
Address: 82.165.143.100#53
** server can't find www.nettgood.com: SERVFAIL
nettgood@ng01:~$ nslookup 82.165.143.100
Server: 82.165.143.100
Address: 82.165.143.100#53
100.143.165.82.in-addr.arpa name = nettgood.com.
100.143.165.82.in-addr.arpa name = ns1.nettgood.com.
100.143.165.82.in-addr.arpa name = ns2.nettgood.com.
Note:
I clarify that the domain www.nettgood.com is currently targeting the DNS of a hosting company and are NOT pointing to the VPS DNS (vmware). As soon as I have everything well configured I would point it to the VPS DNS.
MSJ