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
ADVERTISEMENT
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
View Related
Oct 16, 2010
How to set the hostname and FQDN on Ubuntu Server 10.04?
View 5 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
Jan 21, 2010
the difference between $HOSTNAME and $(hostname)?
View 5 Replies
View Related
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
Feb 23, 2011
This applies to my 2 opensuse PC's, my Windows PC is fine.I can ping a hostname, say "PC1" but I can not ping PC1.domain.local (even the host PC can not ping it's own FQDN). When I ping just the hostname the ping stats even list the FQDN.Onto the next issue, since all my PC's, have the domain prefix domain.local, my Synology can not. I can ping it's IP and that is it. I can resolve it's name with nmblookup just fine tho and that is what is killing me. How is this not resolving.Even weirder, I can browse to "Synology" in Network Servers under places on the slab.
View 3 Replies
View Related
Aug 4, 2010
how can i return to 9.10 from 10.04?
View 8 Replies
View Related
Mar 22, 2010
i tried to install brug theme so i cant return to windows 7 which files should i paste here.
when i click to windows 7 option in grub boot menu it just returns me "GRUB"
View 9 Replies
View Related
May 19, 2010
after i start a process in terminal and you lose the # how do i get it back without quiting the process?
View 4 Replies
View Related
Jan 9, 2011
I'm trying to figure out the syntax needed to run a command that will spew out output (which I don't need) but go back to allowing me to run other commands without closing that program.Basically I run:
Code:
./utserver
and it starts and gives output but I want to run other commands without needing to open a new tab or close that program.
View 4 Replies
View Related
Oct 12, 2010
i am having two small issues with a function i have made.sorry if it is a mess, i am still learning bash.the first is calling the nonpersistssh function (second line) and assigning the return value to nonpersistdiag.the function returns 1, but nonpersistdiag seems to only contain 0. i am unsure on how to proceed.the second problem is the nested else clause on line 10. it is a syntactical error. how would i declare it correctly?
Code: function endsession(){
nonpersistdiag=$[nonpersistssh]# a function that returns an exit code
sudo /etc/init.d/ssh stop; sshdiag=$?
[code]....
View 6 Replies
View Related
Aug 12, 2009
ok, I pressed alt-ctrl-f1 and it displayed my screen with a gui. I then pressed alt-ctrl-f2 and it displayed a textual desktop. I pressed alt-ctrl-f3 and it displayed the same thing. When I pressed alt-ctrl-f1 to return to my gui, it would not let me return to a gui. I was stuck in a cmd line textual desktop.
How, without restarting, do i return to a gui once I press alt-ctrl-f2??
View 3 Replies
View Related
Mar 21, 2010
I was playing with kde, system tray and widgets. Now all system tray is gone, even if I add it I can not change its size etc. Also my other visual features have changed accidently as well. Plus I can not retrieve workspace icon (4 small windows). I want to return kde to its default setting, like first time.Dist is Slackware 13.0 64bit and Kde 4.0
View 3 Replies
View Related
Jun 3, 2011
What are the uses of return 0, return 1 and exit statements in C
View 4 Replies
View Related
Nov 15, 2010
On this link [URL]4 a return type is defined
Code:
return ((unsigned int)(unsigned long)base & TBASE_DEFERRABLE_FLAG);
What is the above function returning.I am not clear with definition of what is being returned in the above code.
View 7 Replies
View Related
Jan 18, 2010
I'm confused about what "echo $0" in a shell actually return. Consider these tests:
Code:
[root@e11apvl151 ~]# # Login shell:
[root@e11apvl151 ~]# echo $0
-bash
[root@e11apvl151 ~]# # Starting a new shell
[root@e11apvl151 ~]# bash
[root@e11apvl151 ~]# echo $0
bash
[root@e11apvl151 ~]# screen
[root@e11apvl151 ~]# echo $0
/bin/bash
Depending on wether the shell is a login shell, a regular shell, or a screen utility, I get different results.
View 8 Replies
View Related
May 6, 2010
I upgraded to 4.4.3 from 4.4.2 this morning from AlienBob's packages (although I see they are now part of -current, but the mirrors are still behind) and I can no longer return from suspend on my laptop. I get a black screen with a mouse pointer that moves freely but it does not bring up my desktop. Ctrl-Alt-Backspace will bring me back to the console as it should, but this is a huge step backward. A few times I got a message about a new screen being detected after resuming but now it's just blank. I am running an intel onboard graphics card on an Asus laptop.
View 1 Replies
View Related
Sep 3, 2010
so I installed openSUSE 11.3 KDE and fooled around with it and the Plasma Netbook Workspaces and am now back with the regular KDE. Unfortunately something I have done has now caused me to not be able to do simple tings like change the wallpaper, or add Widgets to the desktop. Everything seems to "technically" work, so I suspect that it was a configuration somewhere that I messed up.
Is there a directory or directories I can delete and then log out and back in which will create the environment with default settings? I've done this with Gnome and Xfce when I've really messed it up and it has fixed things a number of times, but I am not sure where KDE stores their config files. I believe is it openSUSE 11.3 with the KDE version that came with it and it was installed from a LiveCD.
View 9 Replies
View Related
Jul 3, 2010
I have an Ubuntu Linux on a VMWare running and I've installed RPM Package Manager. However when I try to query all packages using the rpm -qa command, I don't get any results returned.
View 2 Replies
View Related