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.
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.
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.
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)
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.