LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-11-2008, 09:00 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Hosts problem


I was trying to change my hostname and didn't save a backup. Now my server can't get online. This is what it looks like now:

Code:
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1               localhost
127.0.0.1               fluxnuk3r.local.domain
# End of hosts.
What is the default? I did not change the first one, but I did the second one. It does have "fluxnuk3r.local.domain" in it somehow. I'm not sure what to add or what.

Help is greatly appreciated!
 
Old 04-11-2008, 09:11 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look for an /etc/HOSTNAME file. Or a file in /etc/sysconfig. You won't have your IP address defined in your own /etc/hosts. I don't use slackware so I'm not certain where HOSTNAME is defined. There may be a "hostname <yourhostname>" command in your startup scripts.
 
Old 04-11-2008, 09:12 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't have my slackware up at the moment, but try

#127.0.0.1 localhost
#127.0.0.1 fluxnuk3r.local.domain
127.0.0.1 fluxnuk3r fluxnuk3r.localdomain localhost.localdomain localhost

in place of

127.0.0.1 localhost
127.0.0.1 fluxnuk3r.local.domain
 
Old 04-11-2008, 09:35 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by billymayday View Post
I don't have my slackware up at the moment, but try

#127.0.0.1 localhost
#127.0.0.1 fluxnuk3r.local.domain
127.0.0.1 fluxnuk3r fluxnuk3r.localdomain localhost.localdomain localhost

in place of

127.0.0.1 localhost
127.0.0.1 fluxnuk3r.local.domain
Thanks! I'm back up now.

Here is my other problem:

When trying to receive emails sent through my php form, I get this message in my inbox:

Code:
We're sorry. There's a problem with the e-mail address(es) you're trying
to send to. Please verify the address(es) and try again. If you continue
to have problems, please contact Customer Support at (480) 624-2500.

<nobody@fluxnuk3r.localdomain>:
Sorry, I couldn't find any host named fluxnuk3r.localdomain. (#5.1.2)
What do I need to change to get it to send it?
 
Old 04-12-2008, 07:06 PM   #5
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Does anyone know?

Is the fact that the user in my httpd.conf file is "nobody" account for part of the address?
 
Old 04-12-2008, 09:05 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The problem, I suspect, is the trailing ".", but if I were you, I'd start a new thread.

Can you ping fluxnuk3r.localdomain ?
 
Old 04-13-2008, 09:06 PM   #7
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Yah, here's the output:

Code:
server@fluxnuk3r:~$ ping fluxnuk3r.localdomain
PING fluxnuk3r (127.0.0.1) 56(84) bytes of data.
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=1 ttl=64 time=0.130 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=3 ttl=64 time=0.046 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=4 ttl=64 time=0.059 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=5 ttl=64 time=0.048 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=6 ttl=64 time=0.045 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=7 ttl=64 time=0.052 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=8 ttl=64 time=0.045 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=9 ttl=64 time=0.058 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=10 ttl=64 time=0.049 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=11 ttl=64 time=0.045 ms
64 bytes from fluxnuk3r (127.0.0.1): icmp_seq=12 ttl=64 time=0.054 ms
 
Old 04-14-2008, 08:28 PM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
What do I do with that?
 
Old 04-14-2008, 08:32 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Ca nyou send to any amail address with you php form (set up a hotmail account). i may be that your email needs to be a "genuine" address (ie localdomain may not work).

I don't use php very much so I can't really help a lot.
 
Old 04-14-2008, 09:12 PM   #10
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
I shouldn't have to set the mail in the hosts file. The php script does send the email to a valid address, I know because I use that account everyday. Its a godaddy mail account. I get the mail and the mailer-daemon error, but the "mail" email doesn't contain what is in the form. And I get the above message that I posted.
 
Old 04-14-2008, 10:19 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What MTA are you using?
 
Old 04-15-2008, 11:15 AM   #12
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
MTA? Not sure what you mean by that...
 
Old 04-15-2008, 04:21 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sendmail, postfix, etc
 
Old 04-15-2008, 09:35 PM   #14
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
I have sendmail installed, but haven't done anything with it. I.e. configuration.
 
Old 04-15-2008, 09:49 PM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Where is he error message in post 4 coming from and what do you logs say?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Feisty: hosts.allow hosts.deny not present Thane Ubuntu 1 07-08-2007 01:16 PM
/etc/hosts.deny/hosts.allow have no effect on sshd access bganesh Linux - Security 4 05-04-2006 08:06 PM
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration