CentOS 5 Networking :: Access The Server Using Its Hostname ?
Sep 17, 2010
I've completed the installation of a CentOS server.Running the setup utility as root, ive set up a static IP and installed apache. Now this works ok. I can type in the servers IP address from my browser/putty/winSCP and access the server within the intranet. The problem is that i would also like to access the server using its hostname, e.g. http://centos or whatever Currently i cannot do it. I've searched the forums, edited the /etc/sysconfig/network and /etc/hosts to no avail no matter what i do i cannot access it. i've disabled some services so im not sure if this is the fault.
View 1 Replies
ADVERTISEMENT
Jan 31, 2011
I am using samba version 3 (probably), and the problem is that the linux based nas can only be accessed via its ip 192.168.x.x but not its hostname /server string appointed by the smb.conf file:
Code:
[global]
netbios name = NAS
server string = NAS
smb passwd file = /etc/smbpasswd
[Code]....
View 3 Replies
View Related
Jan 7, 2009
Server has been moved to a different locations and so the IP has been changed now the hostname is changed to something other that what it was before.
Could it be the rDNS that is causing this?
Note: this is not a DHCP connection.
View 1 Replies
View Related
Feb 3, 2010
I have Squid3 running and SARG for producing report. I would like to see the hostname being logged in the access.log file instead of the client IP address. I have already set the option log_fqdn=on and it doesn't do it. I still see the client IPs in access.log files...
View 4 Replies
View Related
Apr 13, 2010
Right now my setup is as follows: I have an Asus Eeepc 900 running Netbook Remix named eeepc, and a media centre running 64-bit Ubuntu named media.When I try to ping or ssh into one machine from the other, for exampleCode:$ ping mediaI get an "unknown host name" error. However, pinging the device's IP address works. How do I get the computers to recognize each other's host names? Did I miss something in the setup?
View 2 Replies
View Related
Oct 23, 2009
At school can connect to my computer via SMB/Samba and VNC from the Windows Machines, but not by hostname (I still cannot VNC in at home on my desktop computer and have yet to try Samba there because I wanna setup Samba there from the comfort of my laptop and therefore need VNC first). How come I cannot access this machine by it's hostname?
View 4 Replies
View Related
Aug 16, 2011
The details of "how to access externally with hostname instead of IPAddress in fedora"
View 1 Replies
View Related
Sep 20, 2010
I just built an AMD Phenom II Six Core with 4 Gigs Ram a 160Gib / and swap, and (2) Two Tb mirror for Raid (data storage) I had been using DMRAID in the deprecated box but this box has MDADM v3.1.4 - 31st August 2010 from source (on MDADM wikipedia).
I have no permission problems with using the raid and dmraid is un-installed. The raid is working perfectly and is mounted in my fstab with ext4 defaults 0 2 as my options.
I have two exports
/media/raid/Test
/test
Both show IP and subnet on the showmount -e for the server. I can mount the test just fine on the server. I cannot, however, mount the /media/raid/Test error: mount.nfs: access denied by server while mounting hostname:/media/raid/Test Using dmraid I am able to have the deprecated box export and mount nfs shares from the raid but using MDADM on the new computer, I cannot. I get similar results with pointing MYSQL's data folder to a location on the "/media/raid/Database" (even with apparmor entries).
View 1 Replies
View Related
May 22, 2011
Hostname won't start on boot
I have had a problem where I had to edit in port 53 for the iptables which i think was strange.
Anyways.. On boot I am getting a error where my hostname won't start correctly which causes 110 and 143 to not work correctly.
After i boot I have to run
Then my mail seems to work..
GOAL - to get this to work on boot
View 5 Replies
View Related
Mar 25, 2011
I got below Code from Someone so that I configure Squid using which I can block websites.
#!/bin/sh
# squid server IP
SQUID_SERVER="192.168.0.2"
# Interface connected to Internet
INTERNET="eth0"
[Code]....
View 1 Replies
View Related
Jan 8, 2009
I can't seem to get the X server to allow access from clients on other hosts. (I know, not exactly a network problem, but. I made the change in /usr/share/gdm/defaults.conf to be : DisallowTCP=false
and this worked on another CentOS system, but it hasn't fixed it on this one. What other things could prevent other clients from connecting to the X server? From the local host, I get :
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed although the client DOES actually create the window and work! So, maybe this message is a clue.
From the remote host, I get : Error: Can't open display: 10.10.1.20:0.0 Which is not terribly informative. Is there a log somewhere which details why a connect request was denied? The files in /var/log/gdm are not very informative.
View 2 Replies
View Related
Jan 17, 2009
I've installed centos 5 on an old computer with success and it works great.I can access the web server hosted on the centos server from any computer on the wireless and wired local network. I can also use ssh (putty) and nx client from any computer on the local network (wired and wireless) to access the centos server.On the wireless router I've configured a port forwarding to the wireless network interface on the centos server. I can access the centos server from the outside (internet) through this port forwarding both through http and ssh or nx client.MY problem is that I can't access the centos server from the internet through the wired network interface. Any attempt to view a web page or login with ssh or the nx client will timeout.
View 9 Replies
View Related
Feb 27, 2009
I recently installed CentOS 5 as my server. I have samba running 100%, today i was working on NFS i had it semi working at one point where i could mount to the shared folder but i could not see any of the files in it, now when ever i try to access it i get, mount.nfs: access denied by server while mounting 192.168.1.100:/Server
View 11 Replies
View Related
Jan 28, 2011
Givens
LAN
CentOS 5.5
Windows 7 machine (hostname/NETBIOS name: AwesomePC, LAN IP: 192.168.1.20)
Workgroup: Cake
No WINS server
No Domain
No AD
Goal
From CentOS 5.5, have
# ping AwesomePC
resolve to a ping on 192.168.1.20
Problem
# ping AwesomePC
resolves to some random public IP that seems to be coming from my WAN DNS (openDNS) servers
ATTEMPTS
Have edited /etc/nsswitch.conf, edited line: hosts: files wins dns Have edited /etc/resolv.conf, added line: search CAKE Have installed samba (# yum install samba) and run (# service smb start), with /etc/samba/smb.conf, workgroup = CAKE, name resolve order = wins host lmhosts bcast
Does # ping even care about samba? How can I get this to work?
View 5 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
Mar 30, 2011
i have a website named [URL]... now i want to access this website using proxy server(squid,or etc...) under my personal server named [URL]...means that [URL]...
View 4 Replies
View Related
Jan 12, 2010
New CentOS 5.4 system working fine. Sys admins came in and copied the hosts file from one of the servers down to my desktop and ever sincethen machine has been slow (progs take 10-20seconds to load). RunningGnome. Luckily I saved the old hosts file and copied it back and all is now well. But I'd like to understand why, particularly as I will need to change myhostname in the future.
As configured:
/etc/hosts (yes my hostname is "dummyName" that I will need to change later)
127.0.0.1 dummyName localhost.localdomain localhost
[code]....
View 5 Replies
View Related
Dec 14, 2010
I am looking for a way via script to change a systems hostname and IP address!
View 1 Replies
View Related
May 12, 2011
I have a server running centos 5 located in a datacenter. I am setting it up as a web server but haven't bothered to move the domain from my current registrar to the server as there are a lot of things I need to get done before that. I am having a problem where I couldn't install httpd. So i tried some of the basic fixes i knew as far as yum clean all and checking that my /etc/resolv.conf was ok. I have the two nameservers I am using listed there but I have no hostname set because I simply dont have the domain transferred or anything like that yet. Is that the reason I am having these issues. I installed the system with a network install fine about a month ago so im not sure why I am having problems now.When i try to ping centos.org I get an unknown host www.centos.org error. I tried changing the resolv.conf to have localhost as the hostname and I still have the same issues. I havent made any changes to anything that would potentially cause this.
My etc/resolv.conf looks like this:
search
nameserver 12.34.567.8
nameserver 12.34.566.8
Also it seems the problem may have got worse after yum clean-all because before that when I would try 'yum install httpd' it would show the files and filesizes and ask to install, when I would select yes It would give an error showing it could not find the fastestmirror. Now it doesn't give any file size or files or an option to approve the install. It just responds with an error saying it could not retrieve mirrorlist
<urlopen error (-3, 'Temporary failure in name resolution' Error Cannot find a valid baseurl for repo: base
View 2 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
Nov 15, 2010
i'm setting up apache on 5.3. i can access the apache test page without a problem from the server via URL... But i can't figure out how to access this page from another computer within the domain (for when i upload my home page.
View 4 Replies
View Related
Mar 22, 2011
I have set up an Ubuntu 10.10 server with SAMBA shares and Apache web server. Everything was working fine. Then there was a power failure and after I restarted the server the XP pc's can see the server using the hostname. They can only see it using the ip adress. I haven't change anything on server or client side. Just the restart of the server.
View 3 Replies
View Related
May 31, 2010
What is the right way to specify hostname(in local linux box, not in DNS server):
myhost1
or
myhost1.mydomain1
View 2 Replies
View Related
Jul 17, 2009
Filter access server through the net only to authenticated users from domain controller (Win2k). Server (Centos)(Firewall with 2 nic), which makes access to the net, with only 196MB RAM (PIII500Mhz), so I do not want a solution based on proxy or what resources it uses large I want a solution with a script that runs at login on windows this check series HDD and to communicate with Linux server that's open accessor another simple solutionNow just use only MAC filtering on
View 1 Replies
View Related
Apr 9, 2010
I've recently set up an Ubuntu server and from within the network I can do several things like: log in via SSH, transfer files via FTP, and remotely control Torrents from other computers. My end goal is to be able to access these services by using my dyndns hostname (example.dyndns.org)from an external network.
When I type my dyndns name in my web browser it opens up my router page. How would I set things up so that I can just type my dyndns hostname to point directly to my server, instead of the router page?
All computers are connected to a router which is connected to an ADSL modem, with automatically assigned I.P addresses.
View 3 Replies
View Related
Aug 24, 2010
I configure named and stumble upon the following problem: named is serious about user rights, every config file named uses should be named:named. I set rights to named:named as follows, but they get changed to root:named when I restart named as root. The same thing happens with SELinux context. This results in access denied type errors.
View 1 Replies
View Related
Oct 15, 2009
As the title suggest, I have downlaoded the latest copy of Ubuntu Server from the ubuntu website.Everything installed fine. DHCP configured ok as far as I can tell. I can ping other machines on my network (which are running Windows) and they can ping the Ubuntu machine and conenct to Apache which is running on it.If I try to ping google.com or any other domain, it gives the correct IP address but gives no response to any pings, dont telnet on port 80 (or any toher potr for that matter) on any machine on the internet. I checked the settings using ifconfig to see what DHCP had assigned, and they matched the windows machines configuration (other than the IP address obvisouly). I tried assigning a static IP, even reserving a particular IP for my NIC.
Whatever I do, i cant connect to any machine outside the network via IP or domain.I have searched everywhere and tried everything i can find on the net but still to no avail.The Windows machines are part of a domain called alcom-uk.local and run off of a Windows Small Business 2003 Server. Not sure if i need to manually setup Ubuntu to connect using a domain or anything.
View 14 Replies
View Related
May 9, 2011
I've recently installed CentOS 5, because I needed a good OS to run VMware Server. Just a heads up, I'm not very familiar with RH/CentOS distros, I usually use Arch Linux. My VMware install went fine, config is standard settings. Now I'm trying to access the VMware Infrastructure Web Access using port 8222 (http) and 8333 (https), but it's a no go. I'm connecting from another machine on the LAN, as the CentOS box is headless. I restarted the vmware services, and they seem to be launching fine. I don't know much about VMware though. I verified with netstat and ports 8222 and 8333 are listening.
View 3 Replies
View Related