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.
The correct IP address now seems to have propagated, but still no joy. I spoke to the registrar earlier. There is no IP address against the domain name.
This file:
#$ttl 38400 ;
$ORIGIN bazzaah.com.
@ IN SOA ns1.bazzaah.com. barry\.watson23.gmail.com. (
1245501424 ;
(
10800 ;
3600 ;
604800 ;
38400 ; )
bazzaah.com. IN NS ns1.bazzaah.com..
bazzaah.com. IN NS ns2.bazzaah.com..
bazzaah.com. IN A 78.105.125.227
ns1.bazzaah.com. IN A 78.105.125.227
ns2.bazzaah.com. IN A 78.105.125.227
bazzaah.com. IN NS www.bazzaah.com.
#
generates this response
#
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
dns_rdata_fromtext: /var/named/www.bazzaah.com.hosts:9: near 'bazzaah.com.': extra input text
zone bazzaah.com/IN: loading from master file /var/named/www.bazzaah.com.hosts failed: extra input text
_default/bazzaah.com/IN: extra input text
#
I cannot resolve anything from my side, so I guess it's because you've badly messed the zone file (a "(" more in the 5th line and 2 dots at the end of the NS records). Here is the edited version:
Code:
$TTL 38400 ;zone TTL default
$ORIGIN bazzaah.com.
@ IN SOA ns1.bazzaah.com. barry\.watson23.gmail.com. (
2009062301 ;serial
10800 ;refresh, seconds
3600 ;retry, seconds
604800 ;expire, seconds
38400 ) ;minimum, seconds
IN NS ns1.bazzaah.com.
IN NS ns2.bazzaah.com.
bazzaah.com. IN A 78.105.125.227
ns1.bazzaah.com. IN A 78.105.125.227
ns2.bazzaah.com. IN A 78.105.125.227
bazzaah.com. IN NS www.bazzaah.com.
www IN A 78.105.125.227
I've added some comments, used the today's date as serial and the same IP for www, since you use is as NS.
There is no need for a symlink in /var
Predictably, still no luck, though I spoke with the domain registrar - there is no IP address associated with my domain name, so I suppose that is (part of) the problem.
Is it the zonefile that associates the IP address with the domain name? If not, do you know how I can make that association?
When you register a domain, you can either let the registrar (or your isp) to provide you with dns services for that domain, or you tell them that your are going to do it yourself. In that case you have to give them the names and the IPs of the servers you're going to use as primary and secondary (al least) dns servers. Then you have to setup the dns server for that domain.
In your case everything seems to be ok, except from the fact that your dns server is not reachable from the internet, so no one knows about your domain.
It should be a firewall issue, because your web server is reachable from outside using its IP. Or maybe your isp blocks domain requests. You should start searching about these issues.
When you register a domain, you can either let the registrar (or your isp) to provide you with dns services for that domain, or you tell them that your are going to do it yourself. In that case you have to give them the names and the IPs of the servers you're going to use as primary and secondary (al least) dns servers. Then you have to setup the dns server for that domain.
In your case everything seems to be ok, except from the fact that your dns server is not reachable from the internet, so no one knows about your domain.
It should be a firewall issue, because your web server is reachable from outside using its IP. Or maybe your isp blocks domain requests. You should start searching about these issues.
Regards
My wife tells me that the html displays on 78.105.125.227 so it's half way there.
I have switched my firewall off for the time being but the firewall was, in any event, configured to allow the web server to access the outside world. My ISP allows me to host my own web server (I have a business package and a static IP address) so I doubt they block domain requests.
I have set up port forwarding on my router for Apache. I will allow a port for BIND as well when I find out what port to use.
I am encouraged that the html displays though.
As I wrote above, the domain registrar tells me that there is no IP address associated with the domain name. I can't help but think that is the problem.
As I wrote above, the domain registrar tells me that there is no IP address associated with the domain name. I can't help but think that is the problem.
I've written above the usual procedure when you register a domain, so since you're authoritative for the domain bazzaah.com whenever someone asks for your domain it must be forwarded to your dns.
You should open and forward port 53 tcp/udp on your router to serve dns requests.
I've written above the usual procedure when you register a domain, so since you're authoritative for the domain bazzaah.com whenever someone asks for your domain it must be forwarded to your dns.
You should open and forward port 53 tcp/udp on your router to serve dns requests.
I still get a 404 but now I get it immediately now instead of after 1 minute or so. That's progress of sorts.
just one small issue off the zone file you kindly corrected for me.
Code:
named-checkconf -z -t /var/lib/named
Code:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone bazzaah.com/IN: NS 'www.bazzaah.com' has no address records (A or AAAA)
zone bazzaah.com/IN: loaded serial 2009062302
I still get a 404 but now I get it immediately now instead of after 1 minute or so. That's progress of sorts.
just one small issue off the zone file you kindly corrected for me.
Code:
named-checkconf -z -t /var/lib/named
Code:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone bazzaah.com/IN: NS 'www.bazzaah.com' has no address records (A or AAAA)
zone bazzaah.com/IN: loaded serial 2009062302
Grateful for your insights.
Perhaps this is the problem:
Code:
host www.bazzaah.com ns1.bazzaah.com
Code:
;; reply from unexpected source: 192.168.1.254#53, expected 78.105.125.227#53
;; reply from unexpected source: 192.168.1.254#53, expected 78.105.125.227#53
Using domain server:
Name: 192.168.1.254
Address: 192.168.1.254#53
Aliases:
So I guess you've opened port 53 on your router and everything is fixed.
Quote:
zone bazzaah.com/IN: NS 'www.bazzaah.com' has no address records (A or AAAA)
You didn't used the zone file in my post #48. Look at the last line of the zone file and the comments after it.
The fact is that it's useless to have 3 name servers on the same IP address.
So I guess you've opened port 53 on your router and everything is fixed.
You didn't used the zone file in my post #48. Look at the last line of the zone file and the comments after it.
The fact is that it's useless to have 3 name servers on the same IP address.
Yes, the port forwarding has partly fixed things in that my index.html will display on http://[IP address], but still not on www.bazzaah.com.
I think I have probably narfed something up in webmin. A better learning experience will be for me to look at the various files needed to run a server. Can I get a working server running by configuring the following? Are there any others that I should look at?
/etc/named.conf
/etc/.../httpd.conf
/var/lib/.../[my zone file]
/etc/resolv.conf
/etc/hosts
Now that your dns works and it's authoritative for the domain, all you have to do is to add pairs of hostnames/IPs in the zone file. So if you have used the zone file I've posted in post #48 you would be ok regarding your www.
Anywat edit the zone file add
Code:
www IN A 78.105.125.227
increase the serial, restart bind and you'll be OK
Now that your dns works and it's authoritative for the domain, all you have to do is to add pairs of hostnames/IPs in the zone file. So if you have used the zone file I've posted in post #48 you would be ok regarding your www.
Anywat edit the zone file add
Code:
www IN A 78.105.125.227
increase the serial, restart bind and you'll be OK
I think I was experimenting to see the effect of deleting the last line of the corrected zonefile and neglected to add it back it in.
I don't have the authority section when I dig but the command dig www.bazzaah.com no longer returns NXDOMAIN! I don't know whether www.bazzaah.com displays anything as all I can see is the access screen to my router.
Also, I updated by adding one to it:
Code:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone bazzaah.com/IN: loaded serial 2009062302
I don't have the authority section when I dig but the command dig www.bazzaah.com no longer returns NXDOMAIN! I don't know whether www.bazzaah.com displays anything as all I can see is the access screen to my router.
It works from outside finally!!!!
About the serial you have to increase only the serial for the zone you're changing. No need to be the same for all zones.
It works from outside finally!!!!
About the serial you have to increase only the serial for the zone you're changing. No need to be the same for all zones.
That's great! At last! Thank you so much for your help.
I really appreciate all your help and your patience!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.