General :: Hostname Does Not Have A FQDN?

Jul 7, 2010

I'm using Ubuntu 10.04 LTS

By typing the command:

hostname --fqdn

I get the following

hostname: Name or service not known

As requested by Raphaƫl Hertzog

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

[Code].....

View 3 Replies


ADVERTISEMENT

Ubuntu :: Set Hostname And FQDN On Server 10.04?

Oct 16, 2010

How to set the hostname and FQDN on Ubuntu Server 10.04?

View 5 Replies View Related

Software :: Hostname Does Not Return FQDN?

Apr 8, 2010

When I type in "hostname", the result is locahostname and not localhostname.domainname.

For example, if the hostname is zazu and the domain gateway.2wire.net. I need for "hostname" to return zazu.gateway.2wire.net.

I am using the 2wire router. But - there is a dynamic DNS domain that points to the router.

how to set the FQDN properly so that "hostname" returns zazu.pridelands.com

View 2 Replies View Related

Programming :: Use Perl Regex To Extract The Hostname From A FQDN?

Nov 19, 2010

How do i use perl regex to extract the hostname from a FQDN?

I have

Quote:

$host=ganymede.a.linux.com
$host=io.a.linux.com
$host=europa.a.linux.com

i just want the characters which are to the left of the first .(dot) in FQDN name. I could get it using substr and split function,but how do i get it through regex.

View 13 Replies View Related

General :: Ubuntu 9.10 Networking Hostname / Can Ping The Linux Box Using Its Hostname From A WinXp. But Cannot Do The Reverse?

Jan 3, 2010

I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.

View 7 Replies View Related

General :: Difference Between $HOSTNAME And $(hostname)

Jan 21, 2010

the difference between $HOSTNAME and $(hostname)?

View 5 Replies View Related

Networking :: FC13 Install Can Ping By Hostname - Ssh By Hostname Fails

Jul 29, 2010

I'm having an issue on two Fedora Core 13 machines where I can ping others by hostname, but the hostname resolution fails whenever I use ssh/scp/vnc/etc. I can still do these things by IP address, just not by hostname. RHEL5.3 machines on the same network with the same configuration do not seem to have this problem.

Here's the not-so-quick-and-dirty description of the situation:

I know that there is a virtual router at 192.168.31.1 and another at 192.168.30.1. I also know that there is another network (let's call it 90.90.90.0) and on that network lies a number of resources. By nature of this configuration, any machine on 90.90.90.0 can be accessed by any 192.168.x.x, but not the other way around. Beyond that is out of my hands and currently out of my scope of knowledge.

I have a dnsmasq server on 90.90.90.10 that operates as a secondary nameserver, another machine out of my sphere of influence is the primary nameserver (90.90.90.31).

The secondary nameserver on 90.90.90.10 holds the hostnames of our development machines. The problem is that in some cases, while I can ping by hostname all day long, services such as ssh, scp, vncviewer, etc all fail to resolve the hostname. In other cases I can do all of these things.

Every machine has an equivalent resolv.conf:

As an example, I will show the output of a handful of my development machines:

I also included columbia as a one-way test -- even though it cannot access 30.x or 31.x, they can access it:

columbia -- physical machine, Red Hat Enterprise 5.3, IP 192.168.100.200

Okay, so here are the various outputs. Remember, nibbler, discovery, and atlantis can ALL:
- Ping by IP address
- Ping by hostname
- ssh, scp, vnc, etc by IP addess

Additionally, the SERVFAIL reply from 90.90.90.31 is expected since my dnsmasq server is on the secondary server.

Note that the only machine that can both ping and ssh/scp/etc by hostname is nibbler, which also happens to be the only one of the three running RHEL5.3 instead of FC13. Other virtual and physical machines running on the 192.168.31.0 and 192.168.30.0 networks (all running RHEL5.3) work just like nibbler does. So the problem seems to only affect machines running FC13.

Final note: selinux is disabled, iptables is disabled, ip6tables is disabled.

Other than that, discovery is a brand-spanking-new install straight off of the FC13 DVD. atlantis has been around longer, but its just a file server so I haven't done anything too crazy to it.

View 3 Replies View Related

OpenSUSE Install :: Set $HOSTNAME To Dynamically Update With The Hostname That Is Specified For The Ip In DNS?

Apr 6, 2010

How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?

View 3 Replies View Related

Ubuntu Networking :: Pinging Hostname Rather Than Hostname.local?

May 24, 2010

I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.

View 2 Replies View Related

Ubuntu Networking :: Hostname Changed But Email Still Using Old Hostname?

May 22, 2011

I have an ubuntu 10.04 server with hostname "abc.domain.com". However, due to migration, we had to change to hostname to something else, "xyz".

I have done changing /etc/hosts and /etc/hostname and run /etc/init.d/hostname start.

Checking the hostname and all shows it is now using hostsname of xyz. However, email sending out is still using old hostname. We have some scripts that will send out alerts like failed rsync or hdd space full to my email account. But I see the sender is still "root@abc.domain.com".

How do change that to xyz? I am using postfix. I have edited main.cf and restarted postfix but no go.

View 1 Replies View Related

Server :: How To Set FQDN In Centos

Feb 19, 2011

when I enger hostname -f i get file can not be found I then tried yast lan and get invalid command.So How do I set the FQDN in my centos server?

View 1 Replies View Related

Ubuntu Networking :: Cannot Browse By FQDN

Sep 5, 2010

brand new install of 10.4 server and I'm having a strange issue. I cannot browse to any website by it's domain name, but I can connect via IP address.

I've been googling around and did the following:

added nameservers to /etc/resolv.conf based on an nslookup from my windows box:
nameserver 71.250.0.12
nameserver 68.237.161.12

I commented out the hosts line in /etc/nsswitch.conf per another site and changed it to: hosts: files dns

I can see other computers on my local network via IP and I can browse to the server's default apache page by it's hostname, so I'm assuming it's something about the server's dns resolution, but I'm not sure of my next step.

View 6 Replies View Related

Fedora Networking :: Set Local Host As FQDN?

Dec 11, 2010

I want to install Globus tool kit it says host name is not FQDN(fully qualified domain name) I tried by installing DNS but it doesnt works

I got the configuration. I have posted in following link. I am not able to reply your post i dont know why. [URL]

View 1 Replies View Related

CentOS 5 Server :: IP Is Working But Not Its Fqdn In Bind

Apr 30, 2011

i have xp and virtual guest centos 5.i install apache, bind, squid and webmin through xp, i can access URL...but when i start my squid, put the ip in the browser proxy settings, when i logon its ip turn to URL...I believe my bind is working. Though theres some little glitch. I dont know where.and i already put my servers bind ip to my winxp primary dns server settings.

View 1 Replies View Related

Server :: Using BIND To Resolve Internal Non-FQDN Names

Sep 3, 2009

I have an RHEL5 server running BIND. I'd like to be able to resolve internal, non-FQDN names such as "wiki" for the company internal wiki. in my named.conf file...Named-checkzone returns no errors, and nslookup works when specifying the server explicitly, but no browser resolves the name when entered in the address line. I know this by no means a standard use of BIND, but I'm sure someone out there's pulled this off. I did see when googling someone suggest "load the root zone (.) as master, and add your "hosts" as TLDs, using CNAMEs", but tried that and probably did it wrong since it didn't work.

View 1 Replies View Related

Networking :: Unable Virtual Hosting And Run It On A Local Machine Without Fqdn?

Jul 27, 2011

I am a newbie trying to enable virtual hosting and run it on a local machine without fqdn. I checked the http://9.9.9.92/ (my IP address) site and saw my (default) page. I would like to virtuly host a asdf.com If virtualy hosting is setup properly - how do I access the new setup? Just type http://asdf.com ? or is there more to it?

View 6 Replies View Related

General :: Hostname Changed By Some One?

Apr 12, 2010

I have some problem some one changed hostname on my system. If I do following I see

Code:
knoppix:~# cat /etc/hostname
debian
knoppix which is coming in left side in above output is not my hostname.
The hostname is debian.

How do I get that name back so that when I do cat /etc/hostname output is like following.

Code:
debian:~# cat /etc/hostname
debian

View 4 Replies View Related

General :: How To Assign Hostname To Given IP

Apr 14, 2011

I've installed a new copy of Ubuntu 10.10.Now the big question for me is how do we assign hostname to a given ip? I've given the hostname during the server installation and "cat hosts" says "ebox" hostname I'm trying to put on.Also,I modified the network/interfaces to static and assigned proper values.

#hostname returns ipaddr not the hostname. Also nslookup hostname/ipaddr says server can't find ....

So,is installing dns through bind and setting-up the only way to do that?

View 9 Replies View Related

General :: Add Multiple Hostname ?

May 21, 2010

I am having problem resolving hostname. i had 1 server and its hostname is resolving fine. i purchased 1 vps and its hostname isnt resolving. for server 1 say hostname is server1.domain.com. and for vps i add server2.domain.com. and when i ping my server2.domain.com i get Host Unknown error. do i add Hostname and make it resolve in VPS. i want to use hostname like server2.domain.com.

View 1 Replies View Related

General :: Can't Contact Machine By Its Hostname

May 3, 2011

I just upgraded to Ubuntu 11.0.4 (from 10). In my /etc/hostname file, I defined my machine's name, "my-machine". From the server, I'm able to SSH to myself,

ssh dave@my-machine

However, from another machine in the same network, I'm not able to SSH

Code:
davea-mbp2:systems davea$ ssh dave@my-machine
ssh: Could not resolve hostname my-machine: nodename nor servname provided, or not known

However, I'm able to SSH in using the machine's IP address. how I get my machine name recognized on the network?

View 1 Replies View Related

General :: Add The Hostname To Output Of Other Command?

Apr 28, 2010

i have a variable called hostname which contains hostname of my machine. How would i add the hostname to output of other command . For eg. if a output of command is . command : xm list

Quote:

abc 123 334
bcd 223 333
ddd 333 333

How would i add hostname column to it. My output should look like

Quote:

abc 123 334 hostname
bcd 223 333 hostname
ddd 333 333 hostname

View 1 Replies View Related

General :: Getting Hostname Of Machine Using Bash And RH 5.4

Mar 26, 2011

I admit I am a little green with the "Bourne Again Shell" (Bash), even though I was always not as proficient with the Bourne or Korn shell as with C Shell. From recent research the public sway is to Bash over tcsh. I can see I have been away from Linux/UNIX way to long. Running a network of workstations (upto 6) and servers (2) running RH Enterprise Linux 5.4 plus in the same network is an old DEC Alpha running Tru64 UNIX (don't know which version): I looking for a method to get the hostname I am logged in on to use in a Bash (or if necessary sh) script. This is to be added to an auto_start shell script start up our application on Linux workstation and servers.

View 7 Replies View Related

General :: Hostname: Unknown Host

Jan 15, 2010

I am installing ISPconfig on a Ubuntu server 9.10. When i write hostname -f i get the unknown host message.

View 4 Replies View Related

General :: How To Recover /bin/hostname File

Aug 20, 2010

Accidentally i have deleted my /bin/hostname file
i am using redhat centos 5.4 so me how to recover it

View 1 Replies View Related

General :: Unable To Connect Through Hostname?

Oct 7, 2010

I have configured one samba server. its working fine. the problem is whe we connect from windows machine , through ipaddress its connected. but i am not able to connect through hostname.

View 7 Replies View Related

General :: Slackware VM - Hostname Not Resolving

Jan 28, 2010

I have a version of slackware installed as a virtual machine and am not able to ping hosts or otherwise receive data from any IP addresses external to the LAN. I think this problem is due to the hostname of the vm not being recognized by the gateway (ddwrt); the vm receives an IP via dhcp but the gateway does not seem to recognize its hostname (registers as *).

Will readily respond with whatever conf file is needed.

View 14 Replies View Related

General :: Suse 10 SP3 Won't Ping Hostname

Aug 13, 2010

I configure a Linux Suse 10 box, added static IP, DNS (resolv), gateway (routes) but I am not able to ping other servers by name but nslookup works and the server can navigate on internet check below the problematic server is server-host20

Code:

Other server can ping that server by name just fine

All my network information by the way my server can ping DNS server by name just ok and as you see nslookup works.

Code:

View 3 Replies View Related

General :: Unable To Connect SSh With Hostname?

Dec 7, 2009

When I try to connect different host by using ssh , its not working and throwing me an error "name or service not known" ssh usw3tvx@lalqau40ssh: lalqau40: Name or service not knownHowever I tried ssh with ip address, it works...

View 2 Replies View Related

General :: Allow Outgoing Email From Server IP / Hostname

Jun 7, 2010

How do I check/setup that only the server can send mail (maybe by IP or hostname)? I have a debian server that sends mail through the PHP mail() function with no problems. The server uses sendmail. My concern is how do I make sure only the server itself can send mails through that server. Because it would be bad if spammers would use it as a relay server.

System:
- Debian Lenny
- PHP5
- Apache2
- MySQL 5
- PHPmyadmin
- Sendmail

View 4 Replies View Related

General :: Any Way To Change Hostname Of RedHat 9 Machine?

Apr 1, 2010

I want to change the Hostname of my Red Hat9 Linux machine using command line. By default it show me as following
[root@localhost root]#

I want to see it as
[root@pc1 root]#

Is there any way to change host name?

View 26 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved