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


ADVERTISEMENT

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

General :: How To Assign More Than One IP In RHEL5

Jan 8, 2010

I am using RHEL 5 or 5.5 version as my os. I want to assign more than one ip for that machine. I am very new to linux.

View 7 Replies View Related

General :: How To Assign IP Address

May 14, 2010

I have a fresh installed redhat 9 with 1 network card attached may I know what command will I type to assign 10.0.0.1 on the network card?

and also when I type hostname it always reply localhost.localdomain

how can I assign a hostname

View 4 Replies View Related

General :: Assign A Particular Wan To Selected IPs?

Dec 5, 2010

I have 2 wans . I want to assign a particular wan to selected IPs.Will I achieve it by iptables or ?

View 1 Replies View Related

General :: Assign Custom Icons To Folders?

May 30, 2011

I am looking to assign custom icons to my folders. Like the game folder having a joystick , Ebooks folder etc. but sadly i am unable to find any thing on google. Can any ome suggest some good places to look

View 2 Replies View Related

General :: Assign A Different Command To Headphone's Button?

Jan 13, 2011

I bought a Media-Teach NEMESIS USB headphones. They work really great except there's this one button that lunches Windows Media Player on Windows but on Linux... it doesn't seem to do anything... So my question is, how do I assign a different task for this button on Linux? For example I want it to go to a website address.I guess I need to get what signal it sends thru usb to my system and then somehow manipulate it? Can this be done with a shell script or perhaps there's a tool/program available on Linux for this

View 2 Replies View Related

General :: Assign A Variable To The Output Value Of A Program?

Feb 6, 2011

so i wrote myself a very simple hellworld program in c++

...the usual stuff
int main()
{

[code]...

View 3 Replies View Related

General :: Assign IP Address To 2nd Ethernet Card?

Jun 22, 2010

In my red hat Linux machine there was a Lan card using eth0. IP is asign to that network card and it is functioning properly. I add another ethernet card in my linux machineit was detacted and when i use the commandQuote:[root@localhost root] # ifconfig -ait show me both eth0 and eth1 lan cards.I can see Ip address in my eth1 ethernet card but When I enter into

Code:
[root@localhost root] # cd /etc/sysconfig/network-scripts
and i use ls command it only show me the file ifcfg-eth1 and with

[code]...

View 8 Replies View Related

General :: Assign IP Address Using Command Line?

Mar 26, 2010

I am using internet in my home PC using Red Hat 9. To assign static IP to my linux machine I use "System Settings....> Network" and then double click on "eth0" to assign the static IP.Well these all settings by using GUI interface.Kindly guide me that if I use only command line interface "runlevel 1" then in that case which file should i edit and assign my static IP,Subnet Mask,Default Gateway DNS settings.2- 2nd thing is,is there any way that I may open web broswer in command line? or the administrator should only use internet on Run Level 5 ?

View 14 Replies View Related

General :: Assign Port Numbers Against Interface (LAN Card)

Apr 22, 2010

I am using RHEL 5. In my Linux Box I have two Lan cards (eth0 and eth1). "eth0" is connected with network 192.168.10.0 and "eth1" is connected with network 192.168.11.0. Both Network are inter connected via routing. Now I want a situation where, I want to dedicatedly assign some port numbers against a lan card. Like eth0 will be assigned for ssh (22) and eth1 is assigned for telnet (23). So that, when a user connect to 22 port then he/she is connected to the server through eth0 , and when a user connect 23 port then he/she is connected to the server through eth1. Is it possible to do using iptables or other?

View 2 Replies View Related

General :: Assign Back Hard Drive Partition?

Jun 30, 2010

I am using Asus eee PC model 1001P and I am running ubuntu netbook remix on it. I have a 160 GB hard drive. When I was installing ubuntu I assigned only 50 GB for it, thinking that I will use the remaining partition for windows. But right now after using UNR, I don't want to use windows at all. Is it possible that I can assign the remaining 100 GB unassigned partition back to Ubuntu without reinstalling the whole operating system again?

View 4 Replies View Related

General :: Assign Debian Running On Virtual Box A Static Ip?

Jan 11, 2010

I would like to assign a static IP to Debian running on my virtual box. How should I do it? What needs to be written in /etc/network/interfaces.

View 5 Replies View Related

General :: Assign Oneself To A Group To Get Access To A File

Sep 4, 2009

I'm on a regular Fedora 9 desktop computer with an ext3fs filesystem.

I'm trying to give myself access to /dev/ttyS0. This is because I'm developing code that uses a serial port. While I'm developing this code I don't want to be continually working as super user. I have the following information about /dev/ttyS0:

Code:

So as root I added myself (username freddy) to the group uucp. This is just temporary, for while I work on this code and try different stuff as user freddy. Once the code is established and I have a single program with a fixed name, I plan to give myself an entry in /etc/sudoers that will allow me to run the finished program.

Here's the info on user freddy:

Code:

The problem then is that now if I try to use /dev/ttyS0 I can't.

Code:

I thought that if I was a member of group uucp which is associated with /dev/ttyS0 that I would be given rw access to /dev/ttyS0. What am I missing here?

What the c stands for in the ls -l listing?

View 2 Replies View Related

General :: Assign DHCP IP For Client For 5 Interfaces At One Shot?

May 11, 2010

I have a RHEL Machine. All I have is 5 Ethernet cards.I want all of them to be assigned IP through DHCP while I boot my system.

View 4 Replies View Related

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 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 :: 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 :: Network Connection - Doesn't Assign Any IP Address To Machine

Feb 11, 2009

I have installed Ubuntu 8.10 Server Edition on Virtual Box. When I start the virtual machine I do not have connection to my home network. The router I have does not assign any IP address to this machine. Now I have some questions which I am finding hard to find answers for over the internet and other forums.

If I do have a network interface (I checked this using ifconfig -a) then is there a command to actually make the operating system connect to that network (something like repair on windows)?? Also what is the difference between a network interface with alias eth0 and eth5? I know that when it was eth0 the virtual machine used to connect to the network automatically. Now that it is eth5 it does not! I do not know however if this is related.

View 3 Replies View Related

General :: Assign IPV6 Address Using IOCTL System Call?

Jul 22, 2011

Please send me the code how to assign ipv6 address using ioctl system call using C.

View 1 Replies View Related

General :: Assign CPU Resource To A Certain Process(RHEL 5.5 Client With Workstation)?

May 27, 2010

How to assign CPU and memory resource to a certain process? How to assign CPU and memory resource to a certain user?Let's assume the software is no limit for resource usage.Below is a description of my situation.dual 6 core, 32G memory, RHEL5.5 client with workstation option.I run a big computation (say process1). However, I found from KDE system guard the CPU and memory are not loaded as expected. below are numbers. user% system%process1 100 0.00and CPU idle 90%, memory free 97%

View 3 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







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