Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm new here and I'm trying to setup a subdomain on my domain "neoplaygrounds.com".
I've setup Bind9 and it's working, I even checked logs and no errors - everything is working but I can only find subdomain in dig writing "dig @SERVER_IP cp.neoplaygrounds.com" or "dig @127.0.0.1 cp.neoplaygrounds.com" ( On nslookup I can do a lookup on nameservers & subdomain and works ) but if I try to run dig without @127.0.0.1 or @SERVER_IP it works but it doesn't say "(1 server found)" anymore and on Windows it doesn't even recognize on pinging nor on any browser.
Why that and what can I do?
By the way, here are logs and files if needed:
/var/log/syslog:
Quote:
Oct 14 04:04:33 vps named[4197]: starting BIND 9.7.3 -u bind -t /var/lib/named
Oct 14 04:04:33 vps named[4197]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=' 'CPPFLAGS='
Oct 14 04:04:33 vps named[4197]: adjusted limit on open files from 1024 to 1048576
Oct 14 04:04:33 vps named[4197]: found 2 CPUs, using 2 worker threads
Oct 14 04:04:33 vps named[4197]: using up to 4096 sockets
Oct 14 04:04:33 vps named[4197]: loading configuration from '/etc/bind/named.conf'
Oct 14 04:04:33 vps named[4197]: reading built-in trusted keys from file '/etc/bind/bind.keys'
Oct 14 04:04:33 vps named[4197]: using default UDP/IPv4 port range: [1024, 65535]
Oct 14 04:04:33 vps named[4197]: using default UDP/IPv6 port range: [1024, 65535]
Oct 14 04:04:33 vps named[4197]: listening on IPv6 interfaces, port 53
Oct 14 04:04:33 vps named[4197]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 14 04:04:33 vps named[4197]: listening on IPv4 interface venet0, 127.0.0.2#53
Oct 14 04:04:33 vps named[4197]: listening on IPv4 interface venet0:0, 178.238.227.167#53
Oct 14 04:04:33 vps named[4197]: generating session key for dynamic DNS
Oct 14 04:04:33 vps named[4197]: set up managed keys zone for view _default, file 'managed-keys.bind'
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 254.169.IN-ADDR.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty 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.0.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 1.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
Oct 14 04:04:33 vps named[4197]: automatic empty zone: D.F.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 8.E.F.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 9.E.F.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: A.E.F.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: B.E.F.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Oct 14 04:04:33 vps named[4197]: command channel listening on 127.0.0.1#953
Oct 14 04:04:33 vps named[4197]: command channel listening on ::1#953
Oct 14 04:04:33 vps named[4197]: zone 0.in-addr.arpa/IN: loaded serial 1
Oct 14 04:04:33 vps named[4197]: zone 127.in-addr.arpa/IN: loaded serial 1
Oct 14 04:04:33 vps named[4197]: /etc/bind/178.238.227.rev:1: no TTL specified; using SOA MINTTL instead
Oct 14 04:04:33 vps named[4197]: zone 227.238.178.IN-ADDR.ARPA/IN: loaded serial 2012101301
Oct 14 04:04:33 vps named[4197]: zone 255.in-addr.arpa/IN: loaded serial 1
Oct 14 04:04:33 vps named[4197]: zone neoplaygrounds.com/IN: loaded serial 2006081401
Oct 14 04:04:33 vps named[4197]: zone localhost/IN: loaded serial 2
Oct 14 04:04:33 vps named[4197]: managed-keys-zone ./IN: loaded serial 0
Oct 14 04:04:33 vps named[4197]: running
Oct 14 04:04:33 vps named[4197]: zone 227.238.178.IN-ADDR.ARPA/IN: sending notifies (serial 2012101301)
Oct 14 04:04:33 vps named[4197]: zone neoplaygrounds.com/IN: sending notifies (serial 2006081401)
/etc/bind/neoplaygrounds.db:
Quote:
$ORIGIN neoplaygrounds.com.
$TTL 1d
neoplaygrounds.com. IN SOA ns1.neoplaygrounds.com. ns2.neoplaygrounds.com. (
2006081401
28800
3600
604800
38400
)
neoplaygrounds.com. IN NS ns1.neoplaygrounds.com.
neoplaygrounds.com. IN NS ns2.neoplaygrounds.com.
@ IN A SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
www IN A SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
cp IN A SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
ns1 IN A SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
ns2 IN A SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
Reverse DNS:
Quote:
@ IN SOA ns1.neoplaygrounds.com. ns2.neoplaygrounds.com. (
2012101301;
28800;
604800;
604800;
86400
)
IN NS ns1.neoplaygrounds.com.
IN NS ns2.neoplaygrounds.com.
167 IN PTR SERVER_IP_GONE_HERE ( I USED EXTERNAL ONE, IS IT RIGHT? )
/etc/bind/named.conf.options:
Quote:
options {
directory "/etc/bind";
forwarders {
8.8.8.8;
8.8.4.4;
};
auth-nxdomain no;
listen-on-v6 { any; };
};
/etc/bind/named.conf.local:
Quote:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "neoplaygrounds.com" {
type master;
file "/etc/bind/neoplaygrounds.db";
};
zone "227.238.178.IN-ADDR.ARPA" {
type master;
file "/etc/bind/178.238.227.rev";
};
You will obviously have to enter your own domain and directory structure.
Sorry, I was desesperated. I've been whole night searching and trying new configs lol
By the way, doing what you said I get these errors:
Quote:
root@vps:~# service apache2 start
Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
EDIT: After running some codes, Apache2 finally ran without errors but the subdomain still doesn't work.
Here is what appears when I run "dig cp.neoplaygrounds.com":
** server can't find cp.neoplaygrounds.com: NXDOMAIN
I can't understand what that means ( I mean, I understand that cp.neoplaygrounds.com cannot be found but I can't understand why that ), what can be the problem?
the domain neoplaygrounds.com is registered to work only with ns1.no1http.com
which is not ns1.neoplaygrounds.com
what you have to do is contact registra ask them to point that domain to your
new dns server
after that only you can check the problem one by one
"neoplaygrounds.com" is already poiting to the machine, I don't see what you mean by "point to the DNS server" ._. The domain itself works, only cp.neoplaygrounds.com doesn't.
you have to make change on the domain registra first for nameserver
then all others A record will work
need to change to
ns1.neoplaygrounds.com
ns2.neoplaygrounds.com
until that, your problem will not solve
Oh, ok. Now I understood you. I'll do this and then I'll get back. It will start working after propagation of nameserver change? By the way, what should I put in nameserver IP? The IP of my machine, the IP of the answer from "dig ns1.neoplaygrounds.com" or the ones that are in /etc/resolv.conf?
I'm sorry for all these dumb questions, I'm starting with domain names now...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.