2
votes
1answer
117 views

Name resolution for internal network hostnames

I plan on standardizing host naming conventions and want to setup an "internal" network to allow easy communication between different servers. We purchase servers from multiple different dedicated ...
0
votes
2answers
93 views

Should you use a private hostname or public hostname as server hostname?

Assume you have a web server and database server, the web server is publicly accessible, while the database is only used by the web server, their DNS is web.example.com web-internal.example.com ...
1
vote
1answer
251 views

Push hostnames to a DNS server without DHCP

Considering the complete lack of luck I've had googling any terms related to this question, this may not even be possible, but: Is there a reasonably standard way to set a hostname on a machine, and ...
0
votes
0answers
96 views

How do I stop a Linux computer from sending a DHCP hostname?

I need to set up a Linux computer so that it uses DHCP but doesn't send any hostname at all. I'm using isc-dhclient-4.2.4 /etc/dhcp/dhclient.conf contains the line send host-name = gethostname(); ...
-2
votes
2answers
253 views

Linux PC is not reachable through hostname when static ip is configured [closed]

I'm using Ubuntu 12.04 on PC. when the PC is configured to use DHCP, the pc is accessable through it's hostname. but when I set static ip, I can't reach the PC through the hostname. What is the ...
6
votes
3answers
242 views

Same IP on many systems in different environments

I work in an environment where there are multiple locations, and in each locations we have the same IP addressing scheme, that is, we have many machines (one in each location) that share the same IP ...
4
votes
4answers
1k views

Can't connect to MySQL using 'localhost' but using '127.0.0.1' it's ok?

My /etc/hosts file looks like this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ...
0
votes
1answer
97 views

make php mail() send relevant domain name and not from default server hostname

I'm not the sharpest server administrator in the draw, so i hope this isn't too much of a stupid question. I'm looking to make php mail() send relevant domain name and not from default server ...
0
votes
1answer
589 views

hostname lookup failure

I installed CentOS 6.4 Minimal Install on Virtual Box. Now I have reinstalled Virtual Box, and whenever I reactivate the guest OS and assign the VHD on Virtual BOX, I get : continuously. I have ...
-1
votes
2answers
184 views

Rules for setting hostname [duplicate]

It's thought that for the hostname should be used FQDN. I have a doubts about whether using: host.domain.ltd and domain.ltd for the hostname is the same thing and will be equally correct / ...
2
votes
2answers
12k views

How to set the domain name on GNU/Linux?

Similarly to hostname that can be changed in different ways: temporarily using the hostname command permanently using /etc/hostname (or /etc/sysconfig/network or /etc/HOSTNAME, these files are used ...
0
votes
3answers
362 views

MySQL - Hostname Issue

I'm experiencing an unusual issue with my production mysql server. Currently I only have two production servers so I had all the server host name entries in /etc/hosts files on each server. A few days ...
0
votes
2answers
368 views

Fedora 17 - Can't access remote machine using hostname [closed]

I am using Fedora 17 and am trying to access a remote machine (running Fedora 15) using its hostname which isn't working. The machine is right next to me on the same switch as my machine (so they are ...
12
votes
1answer
1k views

Linux - if I change the hostname, which services need to be restarted?

I'm making some system hostname changes across a few environments and this got me thinking... When I change a server's hostname (live), what needs to be modified and which system services require a ...
1
vote
1answer
394 views

Permanently change hostname of Debian Squeeze virtual server

I have a virtual server running Debian Squeeze. I can change the hostname by running the hostname new.host.name command or by editing /etc/hostname and then running /etc/init.d/hostname.sh, but after ...
0
votes
1answer
2k views

Could not resolve hostname in curl, wget, yum on Centos

After I freshly installed a Centos, I can not get yum, wget or curl to work. All I get is : $ curl http://www.google.com curl: (6) Couldn't resolve host 'www.google.com The most surprising part is ...
1
vote
1answer
639 views

How to create an alias for linux server name?

The openSUSE server name is 'darkhelmet'. I want to create an alias 'dh' for it. So I can also type 'ssh dh' and 'http://dh' would work too. What file/files and where do I have to edit to make this ...
2
votes
3answers
4k views

What is proper relationship between /etc/hosts and DNS A records for a Linux server?

I have an Ubuntu server. It is going to be a web server with a URI of www.example.com. I have a DNS A record pointing www.example.com to the server's IP address. Let's say I pick "trinity" as the ...
0
votes
1answer
122 views

Virtual server (VM) running Ubuntu re-configures itself?

I'm helping to administer a VM running Ubuntu with Media Temple. The hostname was changed, and sendmail was removed and replaced with exim4. To change the hostname 'sudo hostname newhostname' was ...
0
votes
1answer
1k views

ssh can't connect using hostname

I'm setting up some server but I stubbled into an issue with one server. I setup a local dns server, and when I try to connect to this server with ssh alpha@alpha.stvns.com I will get : Permission ...
0
votes
2answers
542 views

CentOS 6.0 Server hostname changes at reboot

Every time I boot, CentOS 6.0 Server hostname disappears. I have to re-issue hostname command to reset it. Please help!
-3
votes
3answers
315 views

Connecting hosts in same network by their fqdn

Lets say I have 2 servers. They are on the same network, same subnet and the same domain. Everything is same. server1.something.internal -> 10.0.0.1 server2.something.internal -> 10.0.0.2 So ...
70
votes
2answers
26k views

Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?

This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this: 127.0.0.1 localhost 127.0.1.1 myhostname On most 'nixes I've used, the second ...
-1
votes
2answers
437 views

setting server hostname

I'm using ubuntu 10.04 on my server and I'm looking to set the hostname. Looking around it seems I have to set this in the /etc/hostname file, but on my system I do not have one. Typing hostname ...
0
votes
2answers
134 views

Effects of mis-configured hosts file?

SSH and sudo were starting very slowly because /etc/hostname and /etc/hosts did not match. After adding a line for the hostname in the hosts file, the initial 2-4 second delay no longer occurs. At ...
0
votes
2answers
508 views

Ubuntu 10.04 server change ip

I have ubuntu 10.04 server configured to ip address x.x.x.200 and also have windows server 2003 with ip address x.x.x.100 (already setup as www.some-domain.com) Currently i trying to shutdown windows ...
2
votes
1answer
644 views

Ubuntu - get hostname -f to return fake “FQDN” without DNS

On my private local network, I need an Ubuntu host to convince itself (well, more specifically the Erlang "long name" tool) that it has a FQDN. It doesn't much matter what it is. But supposing my real ...
1
vote
4answers
568 views

Setting FQDN hostname and dot

I was wondering if I am editing a file such as /etc/hosts or /etc/sysconfig/network should I put a . at the end of the name. such as test.example.com. Is there a difference? Would anything break ...
65
votes
6answers
51k views

Setting the hostname: FQDN or short name?

I've noticed that the "preferred" method of setting the system hostname is fundamentally different between Red Hat/CentOS and Debian/Ubuntu systems. CentOS documentation and the RHEL deployment guide ...
0
votes
2answers
2k views

Cannot ping linux (RedHat) machine by hostname

For some reason, a linux (RedHat) machine that I have is not ping-able by hostname! It is ping-able by IP address though. I have the same network configurations as another linux (RedHat) machine ...
10
votes
8answers
6k views

Linux command line utility to resolve host names using /etc/hosts first

There are several command line utilities to resolve host names (host, dig, nslookup), however they all use nameservers exclusively, while applications in general look in /etc/hosts first (using ...
0
votes
2answers
681 views

How expensive is a hostname in htaccess? Other solutions possible?

For easy allow or disallowing of dynamic IP-adresses you can add them as a hostname in a .htaccess file. As I have read from: .htaccess allow from hostname? it does a reverse lookup on the ...
1
vote
1answer
232 views

Trouble changing hostname on a Rightscale provisioned CentOS instance

I am trying to change the hostname to host01 on an instance that was is using the RightImage_CentOS_5.4_x64_v5.6 - 11H2.a1 [rev 11] MCI. So I set the /etc/hosts file to: 127.0.0.1 localhost ...
2
votes
5answers
6k views

Access linux machine by hostname within LAN?

I have a LAN setup with a bunch of windows and linux boxes. The LAN is built on top of the AT&T DSL Router. I don't have any type of DNS Server running. All the windows machines can identify ...
0
votes
1answer
387 views

Redirect port for specific hostname?

Lets say I have two domains pointing to my IP: first.com and second.com pointing to 127.0.0.1 When someone connects to first.com:6000 it should go to 127.0.0.1:6000. But when someone connects to ...
1
vote
2answers
149 views

Automatic ip, name and dns configurations for virtual servers on demand

Current environment is several Linux boxes in a couple of logically separated "datacenters" running virtual guests that are created and deleted on demand. DNS and DHCP run in another box and should ...
0
votes
2answers
306 views

Windows thinks foreign IP address is local hostname?

I've spent the whole day trying to fix this and it's driving me absolutely insane. I noticed the issue while trying to set up a remote mySQL server and then went from there. My manager can connect to ...
3
votes
2answers
1k views

Hostname resolution in a machine with multiple running eth ports

Consider a machine having 4 eth ports running on it. Then to which eth port's ipaddress will the hostname resolve to? Kindly guide me to some documentation to support your answers so that I could use ...
20
votes
5answers
6k views

Hostnames - What are they all about?

I've recently been "forced" to perform some sysadmin work, while this isn't something that I absolutely love doing I've been reading, experimenting and learning a lot. There is one fundamental aspect ...
17
votes
3answers
8k views

On Ubuntu 10.04, should /etc/hostname contain the server's FQDN?

On Ubuntu 10.04, should /etc/hostname contain the server's fully-qualified domain name?
0
votes
1answer
387 views

how to add linux computer to windows network

i need to add a linux to a network, and assign it a hostname in active directory. any clues on how to do that? i know how to set things up on the windows box, but not how to give it a recognizable ...
0
votes
2answers
163 views

Deny IP to host name request?

My home computer is connected directly through a modem to my ISP. How can I prevent my IP to return a host name when I use this website ? IPtoHost EDIT: so... I take it that the request goes ...
0
votes
2answers
315 views

Junk host name while using nslookup, How to change it?

My question is regarding the host name mapped to a machine's IP. I am new to Linux, I have a machine to test whether our j2ee based web application runs fine in linux box. we are able to deploy our ...
2
votes
1answer
918 views

Routing requests from external hostnames to internal IP addresses in Ubuntu

I want to host several websites using the same IP address. My ISP gives me one static IP address, however I have three different webservers (all running different sites) hooked up behind a cheap ...
0
votes
2answers
470 views

how to get Incoming and Outgoing hostnames and ports on a linux email server

I would like to export my emails from my email account on a linux email server to Gmail. So I was wondering how to get its incoming and outgoing hostnames and ports and get to know if it supports POP3 ...
1
vote
6answers
5k views

linux command line: find a host's canonical hostname

what is the easiest way to get a host's canonical host name from linux's command line? If it matters, my shell is bash. CLARIFICATION: I want another host's canonical hostname, either by ip or by ...
1
vote
1answer
439 views

Linux: shortname stuck as “localhost” even though full hostname is correct

I have a linux (CentOS 5.2) server with the name myserver.mycompnay.com, which is correctly returned when I run 'hostname'. When I run 'hostname -s' however it returns "localhost" which is causing ...
2
votes
4answers
896 views

Where is the hostname in /etc/hostname on a debian server used?

I have a webserver running a number of websites. When I ssh in, it gives me a tab name of username@localhost.localdomain, which is counterintuitive, making it seem like those tabs are on my ...
2
votes
2answers
104 views

Change name of linux server on network

I'm using CentOS 5. How do I change the hostname of the machine so I can ssh to it from other boxes by a short hostname? I've tried "hostname puppet", changing "/etc/sysconfig/network" and "sysctl ...
3
votes
4answers
1k views

Can not ssh into ubuntu server using <servername>.local (on one server but not the other)

I have two servers and one seems to have configured something "out of the box" to allow "ssh servername.local" to work. I really like this and looked into it, but I don't see any difference in their ...