Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Can't see Linode
PostPosted: Tue Sep 06, 2005 11:31 pm 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
I previously posted under 'crash on boot' but have since discovered the linode shell, and found my system OK! but...

I can hit my webserver, or ping my system. I had CPanel running and they advised "There is no A record for plato :) Your admin will know how to do basic DNS tasks :)" but...

I've changed the zone record as below, and still no luck

I'm not stong on this any help would be appreciated.


/var/named/pixelrepublic.com.db reads as below

; cPanel
; Zone file for pixelrepublic.com
$TTL 14400
@ IN SOA ns1.pixelrepublic.com. pcameron.kvb.edu.au. (
2005061001 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

pixelrepublic.com. IN NS ns1.pixelrepublic.com.
pixelrepublic.com. IN NS ns2.pixelrepublic.com.

pixelrepublic.com. IN A 64.62.190.111
plato.pixelrepublic.com. IN A 64.62.190.111
plato. IN A 64.62.190.111
localhost.pixelrepublic.com. IN A 127.0.0.1

pixelrepublic.com. IN MX 0 pixelrepublic.com.

mail IN CNAME pixelrepublic.com.
www IN CNAME pixelrepublic.com.
ftp IN A 64.62.190.111


Top
   
 Post subject:
PostPosted: Wed Sep 07, 2005 4:15 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ålesund, Norway
Skype: neonnero
Twitter: neonnero
DNS config for the zone looks fine by me.
Code:
$ dig @ns1.pixelrepublic.com AXFR pixelrepublic.com

; <<>> DiG 9.2.5 <<>> @ns1.pixelrepublic.com AXFR pixelrepublic.com
; (1 server found)
;; global options:  printcmd
pixelrepublic.com.      14400   IN      SOA     ns1.pixelrepublic.com. pcameron.kvb.edu.au. 2005061001 14400 7200 3600000 86400
pixelrepublic.com.      14400   IN      MX      0 pixelrepublic.com.
pixelrepublic.com.      14400   IN      NS      ns1.pixelrepublic.com.
pixelrepublic.com.      14400   IN      NS      ns2.pixelrepublic.com.
pixelrepublic.com.      14400   IN      A       64.62.190.111
ftp.pixelrepublic.com.  14400   IN      A       64.62.190.111
localhost.pixelrepublic.com. 14400 IN   A       127.0.0.1
mail.pixelrepublic.com. 14400   IN      CNAME   pixelrepublic.com.
plato.pixelrepublic.com. 14400  IN      A       64.62.190.111
www.pixelrepublic.com.  14400   IN      CNAME   pixelrepublic.com.
plato.                  14400   IN      A       64.62.190.111
pixelrepublic.com.      14400   IN      SOA     ns1.pixelrepublic.com. pcameron.kvb.edu.au. 2005061001 14400 7200 3600000 86400
;; Query time: 734 msec
;; SERVER: 64.62.190.111#53(64.62.190.111)
;; WHEN: Wed Sep  7 10:13:34 2005
;; XFR size: 12 records


Top
   
 Post subject:
PostPosted: Wed Sep 07, 2005 4:22 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 12:35 am
Posts: 118
Website: http://www.necrobones.com/
Location: Sterling, VA
I see some minor wierdness. You have "plato" in the example as a complete top-level hostname, AND as a fully qualified host. See:

Code:
plato.                  14400   IN      A       64.62.190.111
plato.pixelrepublic.com. 14400  IN      A       64.62.190.111


This shouldn't break anything, since you have the correct one in there, though you'll probably see log entries for "out of zone data ignored" or some such.

Some lookups will fail because ns1 and ns2 aren't resolving properly. Their glue-records exist on the TLD servers, but not in your zone. You need to add these:

Code:
ns1.pixelrepublic.com.  172800  IN      A       64.62.190.111
ns2.pixelrepublic.com.  172800  IN      A       64.62.190.112


I'm not sure if this is breaking anything, but the fact that your own zone isn't serving up the IPs for the nameserver hostnames is rather broken.

I'd use shorter TTLs though. 172800 (2 days) and 86400 (1 day), though "standard" are a long time to wait when you have things you need to fix like this. 14400 (4 hours) like your other hostnames isn't bad.

_________________
----
Ed/Bones.


Top
   
 Post subject: new problem
PostPosted: Thu Sep 08, 2005 7:33 am 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
Thanks I added those lines, but there is another problem.

Each time I reboot the linode it reverts to the default host name.

Can I stop it doing this?


Top
   
 Post subject: Re: new problem
PostPosted: Thu Sep 08, 2005 11:22 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ålesund, Norway
Skype: neonnero
Twitter: neonnero
dingolingo wrote:
Each time I reboot the linode it reverts to the default host name.

Can I stop it doing this?

Have you put your hostname into the /etc/hostname file yet?


Top
   
 Post subject: Tanks tried it
PostPosted: Thu Sep 08, 2005 3:57 pm 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
I tried this but it still reverted


Top
   
 Post subject:
PostPosted: Thu Sep 08, 2005 4:13 pm 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ålesund, Norway
Skype: neonnero
Twitter: neonnero
Does the file /etc/conf.d/hostname exist?


Top
   
 Post subject:
PostPosted: Thu Sep 08, 2005 7:01 pm 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
Neither /etc/conf.d/hostname or /etc/conf.d exist

I'm running CentOS 3.5 with CPanel installed.


Top
   
 Post subject:
PostPosted: Thu Sep 08, 2005 7:08 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
/etc/sysconfig/network

-Chris


Top
   
 Post subject: Append or replace
PostPosted: Thu Sep 08, 2005 7:43 pm 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
The file reads:

NETWORKING=yes
HOSTNAME=localhost.localdomain

Sorry for my ignorance here but do append, or replace, the current HOSTNAME value?


Top
   
 Post subject:
PostPosted: Thu Sep 08, 2005 8:44 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
You'll want to set HOSTNAME to whatever your host and domain name are. Like so:

HOSTNAME=plato.pixelrepublic.com

However, by default, each Linode acquires its primary (eth0) IP address via DHCP, and that might be overriding your hostname. You'll need to move off using DHCP and use a static configuration. Fairly easiy to do...

Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to have values like so:
Code:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=64.62.190.255
IPADDR=64.62.190.111
NETMASK=255.255.255.0
NETWORK=64.62.190.0
ONBOOT=yes


You'll also need a GATEWAY line in /etc/sysconfig/network:
Code:
NETWORKING=yes
HOSTNAME=plato.pixelrepublic.com
GATEWAY=64.62.190.1


That's assuming your IP is 64.62.190.111.

Either reboot, or log into your console via Lish and restart networking (/etc/init.d/network restart) to get those changes.

-Chris


Top
   
 Post subject:
PostPosted: Thu Sep 08, 2005 8:50 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
caker wrote:
You'll also need a GATEWAY line in /etc/sysconfig/network


Actually, comparing my RH init scripts to my CentOS box, the CentOS box has the GATEWAY entry in the ifcfg-eth0 file. Either might work, but if not, move that GATEWAY line into the ifcfg-eth0 file.

-Chris


Top
   
 Post subject: Many thanks
PostPosted: Sun Sep 11, 2005 9:11 pm 
Offline
Senior Newbie

Joined: Mon Sep 05, 2005 4:46 am
Posts: 8
Many thanks, but I've run into several issues so decided to reinstall.

Once again many thanks for your input.


Top
   
 Post subject:
PostPosted: Thu Sep 15, 2005 11:49 am 
Offline
Junior Member

Joined: Thu Apr 21, 2005 12:41 pm
Posts: 43
Website: http://www.jamesl.info
WLM: sipherx@gmail.com
Yahoo Messenger: sipherx598
AOL: sipherx1023
Location: Florida
use debian

_________________
James Lenhart.


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2005 6:02 pm 
Offline
Senior Member

Joined: Thu Apr 08, 2004 3:24 pm
Posts: 92
ICQ: 3765104
Website: http://www.unixfool.com
Yahoo Messenger: wigglit2001@yahoo.com
Location: VA
That was nice and helpful.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group