[SOLVED] after everything i tried i cant get my server to go online :(
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
after everything i tried i cant get my server to go online :(
i got a domain from godaddy, so i added my own nameservers (im a total newbie to this) following googles examples, i went to godaddy and added ns1.mydomain.com and pointed to my ip 2.103.xxx.xxx and did the same to ns2. The I went to godaddy dns manager and edited the zone file, i deleted the godaddy's ip and added my ip as A record. below is the picture of how i did it. http://i52.tinypic.com/b9ivlj.png
here are the config files for bind i edited.
Code:
mydomain.com.hosts
$ttl 38400
MYDOMAIN.COM. IN SOA ns1.mydomain.com. social@mydomain.com. (
1184045571
10800
3600
604800
38400 )
MYDOMAIN.COM. IN NS ns1.mydomain.com.
WWW.MYDOMAIN.COM. IN A 2.103.xxx.xxx
named.ca file
Code:
; <<>> DiG 9.5.0b2 <<>> +bufsize=1200 +norec NS . @a.root-servers.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34420
;; flags: qr aa; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 20
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 518400 IN NS M.ROOT-SERVERS.NET.
. 518400 IN NS A.ROOT-SERVERS.NET.
. 518400 IN NS B.ROOT-SERVERS.NET.
. 518400 IN NS C.ROOT-SERVERS.NET.
. 518400 IN NS D.ROOT-SERVERS.NET.
. 518400 IN NS E.ROOT-SERVERS.NET.
. 518400 IN NS F.ROOT-SERVERS.NET.
. 518400 IN NS G.ROOT-SERVERS.NET.
. 518400 IN NS H.ROOT-SERVERS.NET.
. 518400 IN NS I.ROOT-SERVERS.NET.
. 518400 IN NS J.ROOT-SERVERS.NET.
. 518400 IN NS K.ROOT-SERVERS.NET.
. 518400 IN NS L.ROOT-SERVERS.NET.
;; ADDITIONAL SECTION:
A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4
A.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:503:ba3e::2:30
B.ROOT-SERVERS.NET. 3600000 IN A 192.228.79.201
C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12
D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90
E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10
F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241
F.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:500:2f::f
G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4
H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53
H.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:500:1::803f:235
I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17
J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30
J.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:503:c27::2:30
K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129
K.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:7fd::1
L.ROOT-SERVERS.NET. 3600000 IN A 199.7.83.42
M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33
M.ROOT-SERVERS.NET. 3600000 IN AAAA 2001:dc3::35
;; Query time: 147 msec
;; SERVER: 198.41.0.4#53(198.41.0.4)
;; WHEN: Mon Feb 18 13:29:18 2008
;; MSG SIZE rcvd: 615
named.empty file
Code:
$TTL 3H
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
named.localhost file
Code:
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
named.loopback file
Code:
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
PTR localhost.
and the last 2 was;
named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "mydomain.com" {
type master;
file "/var/named/mydomain.com.hosts";
};
include "/etc/named.rfc1912.zones";
named.rfc1912.zones
Code:
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "localhost.localdomain" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
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" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
};
does anyone know how to point mydomain.com to my linux server? please if anyone can help this would help alot for my university project. thank you.
I think I spot your problem, but to help you I'm not going to tell you.
What degree are you working toward?
im a gradute lol, its a project i wanted to do while i was in uni but never did it. now i want to put my server online and run a large website for a company im working.
You need to also add the A record for ns1 (and ns2) in the zone file.
Code:
$ttl 38400
MYDOMAIN.COM. IN SOA ns1.mydomain.com. social@mydomain.com. (
1184045571
10800
3600
604800
38400 )
MYDOMAIN.COM. IN NS ns1.mydomain.com.
ns1.mydomain.com. IN A 2.103.xxx.xxx
ns2.mydomain.com. IN A 2.103.yyy.yyy
WWW.MYDOMAIN.COM. IN A 2.103.xxx.xxx
Increase the serial and reload bind. You can try your domain here
You need to also add the A record for ns1 (and ns2) in the zone file.
Code:
$ttl 38400
MYDOMAIN.COM. IN SOA ns1.mydomain.com. social@mydomain.com. (
1184045571
10800
3600
604800
38400 )
MYDOMAIN.COM. IN NS ns1.mydomain.com.
ns1.mydomain.com. IN A 2.103.xxx.xxx
ns2.mydomain.com. IN A 2.103.yyy.yyy
WWW.MYDOMAIN.COM. IN A 2.103.xxx.xxx
Increase the serial and reload bind. You can try your domain here
Regards
thanks for tring, but its not working. do you think it might have to do with godaddy? i edited godaddy's zone file through their web interface the only change i made was replaced their ip with myn. btw in godaddy's dns manager, i went to have a look again in their zone file, when i scrolled down it says "Nameservers" but its empty and there is an option to add namesevers. Do I need to add the nameservers in the godaddy zonefile? I already added the nameservers through godaddy domain manager where it said "Set Nameservers" and I selected the "i have specific nameservers for my domains" then i added my 2 nameservers.
thanks for tring, but its not working. do you think it might have to do with godaddy? i edited godaddy's zone file through their web interface the only change i made was replaced their ip with myn. btw in godaddy's dns manager, i went to have a look again in their zone file, when i scrolled down it says "Nameservers" but its empty and there is an option to add namesevers. Do I need to add the nameservers in the godaddy zonefile? I already added the nameservers through godaddy domain manager where it said "Set Nameservers" and I selected the "i have specific nameservers for my domains" then i added my 2 nameservers.
I haven't use godaddy, but I guess you added the 2 hostnames ns1.mydomain.com and ns2.mydomain.com as your custom nameservers. Then you should go to the zone administration and add the A RRs for those 2 hosts, otherwise since they cannot be resolved, your domain cannot be resolved either.
Also after reading a bit the godaddy's documentation, I guess you need to register those 2 hosts as dns servers.
Yeah thats what I did earlier, because godaddy won't allow anyone to add nameservers unless they'r registered. The article you gave me was the one I did few days ago. From the intodns report this is what I got:
Code:
Mismatched NS records WARNING: One or more of your nameservers did not return any of your NS records.
DNS servers responded ERROR: One or more of your nameservers did not respond:
The ones that did not respond are:
2.103.xxx.xxx
Multiple Nameservers ERROR: Looks like you have less than 2 nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.
Missing nameservers reported by your nameservers You should already know that your NS records at your nameservers are missing, so here it is again:
ns1.mydomain.com.
ns2.mydomain.com.
SOA record No valid SOA record came back!
MX Records Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!
WWW A Record ERROR: I could not get any A records for www.mydomain.com!
(I only do a cache request, if you recently added a WWW A record, it might not show up here.)
Mismatched NS records WARNING: One or more of your nameservers did not return any of your NS records.
DNS servers responded ERROR: One or more of your nameservers did not respond:
The ones that did not respond are:
2.103.xxx.xxx
Multiple Nameservers ERROR: Looks like you have less than 2 nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.
I guess this is because you don't have a 2nd name server running. If 2.103.xxx.xxx is the one you've already defined (ns1) and didn't respond check your firewall rules and make sure that port 53 tcp/udp is open.
You can also test your dns with
To get the nameservers working, two things need to happen. You will need to register them with GoDaddy's custom hosts page, which it appears to have already done. Then you will need to update your nameservers on GoDaddy's interface. I've used their interface a few times and from what I noticed, they wont allow you to use their DNS manager if the domain is pointed to custom nameservers. Since your screen shot is their domain manager, I'm willing to bet this hasn't been done.
Once the change is made, you will need to ensure your zone file has all applicable information. For example, my zone file looks something like this:
Code:
@ IN NS ns1.exampledomain.com.
@ IN NS ns2.exampledomain.com.
@ IN A 100.200.300.400
ns1 IN A 100.200.300.400
ns2 IN A 100.200.300.400
www IN A 100.200.300.400
Your zone file looks good, so I'm willing to bet its a "switching your domain's nameservers" issue.
I guess this is because you don't have a 2nd name server running. If 2.103.xxx.xxx is the one you've already defined (ns1) and didn't respond check your firewall rules and make sure that port 53 tcp/udp is open.
You can also test your dns with
GENIUS!!!! it works!! u were right, it was the portforwarding that was effecting the connection. I went to my router and forwarded all the ports that were neccessory (got it from portward.com). Now it works! thanks alot man! one last question, if I want to use ftp do I have to configure bind also for that? thanks.
EDIT: ok now there seems to be another problem, you see now the server works but only inside my network (LAN) i tried accessing it from another internet network, its timing out. Any idea?thx
;; Query time: 1047 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Sat Oct 22 00:36:07 2011
;; MSG SIZE rcvd: 31
[root@ns1 ~]# dig mydomain.com @2.103.xxx.xxx
; <<>> DiG 9.5.2-RedHat-9.5.2-1.fc10 <<>> mydomain.com @2.103.xxx.xxx
;; global options: printcmd
;; connection timed out; no servers could be reached
dig +trace mydomain.com:
Quote:
; <<>> DiG 9.5.2-RedHat-9.5.2-1.fc10 <<>> +trace mydomain.com
;; global options: printcmd
;; Received 12 bytes from 192.168.1.254#53(192.168.1.254) in 30 ms
if I want to use ftp do I have to configure bind also for that?
No bind has nothing to do with ftp.
You can ftp to any host in your domain, if you have a ftp server running on that host. With bind you can just define a hostname like ftp.domain.com if you want and that's all.
Quote:
EDIT: ok now there seems to be another problem, you see now the server works but only inside my network (LAN) i tried accessing it from another internet network, its timing out. Any idea?thx
Comment out:
Quote:
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
allow-query { localhost; };
Quote:
This is what I got from dig:
; <<>> DiG 9.5.2-RedHat-9.5.2-1.fc10 <<>> mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54889
<snip>
dig +trace mydomain.com:
Quote:
; <<>> DiG 9.5.2-RedHat-9.5.2-1.fc10 <<>> +trace mydomain.com
;; global options: printcmd
;; Received 12 bytes from 192.168.1.254#53(192.168.1.254) in 30 ms
Check your logs for the SERVFAIL and/or use named-checkconf named-checkzone to check your configuration. You may also post here named.conf and the zone file.
Check your logs for the SERVFAIL and/or use named-checkconf named-checkzone to check your configuration. You may also post here named.conf and the zone file.
this is what i got
Code:
named-checkconf named-checkzone
none:0: open: named-checkzone: file not found
here is my named conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
//listen-on port 53 { 127.0.0.1; };
//listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
//allow-query { localhost; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "mydomain.com" {
type master;
file "/var/named/mydomain.com.hosts";
};
include "/etc/named.rfc1912.zones";
this is the zone file:
Quote:
$ttl 38400
MYDOMAIN.COM. IN SOA ns1.mydomain.com. social@mydomain.com. (
1184045571
10800
3600
604800
38400 )
MYDOMAIN.COM. IN NS ns1.mydomain.com.
ns1.mydomain.com. IN A 2.103.xxx.xxx
ns2.mydomain.com. IN A 2.103.yyy.yyy WWW.MYDOMAIN.COM. IN A 2.103.xxx.xxx
do you think i have to edit my httpd file too? u mind having a look at it? i attached it. when i tried restarting httpd i got this error:
Code:
httpd: apr_sockaddr_info_get() failed for mydomain.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sun Oct 23 20:46:29 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
Anyway, I've tried to lookup your domain and got no answer from dns server, so check again your firewall/router and make sure you are forwarding port 53 for both tcp/udp protocols.
Regarding apache
Are you running a RHEL based distro, or a Debian based? Because in the last line of httpd.conf you include /etc/httpd/conf/sites-enabled/ that is debian specific, while the rest of the config file looks like it's from RHEL.
You can add a ServerName so apache stops complaining for it and maybe start a new thread giving more details, like distro, the vhosts config file and so on
Anyway, I've tried to lookup your domain and got no answer from dns server, so check again your firewall/router and make sure you are forwarding port 53 for both tcp/udp protocols.
Sorry didnt know that (still new to linux). This is what I got
Regarding apache
Are you running a RHEL based distro, or a Debian based? Because in the last line of httpd.conf you include /etc/httpd/conf/sites-enabled/ that is debian specific, while the rest of the config file looks like it's from RHEL.
You can add a ServerName so apache stops complaining for it and maybe start a new thread giving more details, like distro, the vhosts config file and so on
Regards
I am running fedora 10, my httpd looks fine, since its working when i type 127.0.0.1.
I tried everything from ports to firewall, everything seems fine, except my server is not working when i type my domain name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.