Which localhost line shuold be used in the /etc/hosts file on Solaris Sparc

Hi There,
I would like to know which line should be use in the /etc/hosts file:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain localhost
Thanks :-)
J

user560159 wrote:
Hi There,
I would like to know which line should be use in the /etc/hosts file:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain localhost
Thanks :-)
JThe format for the hosts file is
ipaddress alias1 alias2 alias3 alias4 Most shops will just have two aliases, one with just the machine name, one with the fully qualified domain.machine name. In reality, you can do whatever makes sense:
[root@vmlnx01 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality wil fail
127.0.0.1       localhost.localdomain localhost
[root@vmlnx01 ~]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=1.96 ms
[root@vmlnx01 ~]# ping localhost.localdomain
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.094 ms
[root@vmlnx01 ~]# vi /etc/hosts
<<<< adding an alias 'fred' >>>>>
[root@vmlnx01 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality wil fail
127.0.0.1       localhost.localdomain localhost fred
[root@vmlnx01 ~]# ping fred
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.306 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.093 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.092 msDoes the order of the aliases have any meaning? I leave that quick experiment as an exercise for the student.

Similar Messages

  • In the command line how do I find the etc/host file? is there one?

    I am trying to work remotely and use our lotus notes system (which is from a windows based server) but I have to connect to the mail server and our IT person wants to find the equivalent of the Windows host file or host table . is there such a file? we went here
    http://linux.die.net/man/5/hosts
    hosts(5) - Linux man page
    Name
    hosts - The static table lookup for host names
    Synopsis
    /etc/hosts
    thanks

    Since you're using a Macintosh, quit reviewing linux stuff. These, when entered in the Terminal app (inside /Applications/Utilities/) should point you in the right direction:
    *cat /etc/hosts*
    details in:
    *man hosts*
    FWIW, you should search the Unix forum (or post your query there) under OS X Technologies.

  • Is there a way to find out which CSS rules are being used by the different html files?

    Is there a way in Dreamweaver CS3 to find out which CSS rules are being used by the different html files, sitewide?
    Thanks - Dave

    Firefox add-on "Web Developer Toolbar" is a must have.  Information > Display Div & Class details.
    https://addons.mozilla.org/en-US/firefox/addon/60
    Another  handy Firefox Add-on  to add to your tool chest is called "Dust-Me Selectors."
    http://www.sitepoint.com/dustmeselectors/
    "It extracts all the selectors from all the stylesheets on the page you're viewing, then analyzes that page to see which of those selectors are not used. The data is then stored so that when testing subsequent pages, selectors can be crossed off the list as they're encountered.
    You can test pages individually, or spider an entire site, and you'll end up with a profile of which selectors are not used anywhere."
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Do I need to provide the physcial hostname to iAS during installation or can I just that installed name into the /etc/hosts file?

     

    Hi,
    Pls confirm if you are using Windows 2000 Pro, in this O/S the
    hostname is the name of the computer itself. Check the
    MyComputer->Properties->Network Identification->Properties, the name you
    find under the computer name will be automatically taken while
    installation, if it doesn't then there is some error. However the
    C:\Winnt\System32\Drivers\Etc\hosts doesn't matter much while installing
    iAS 6.0 SP1 or above. Hope this helps
    Regards
    Raj
    Hazel Seow wrote:
    Do I need to provide the physcial hostname to iAS during installation
    or can I just that installed name into the /etc/hosts file?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Strange entry in the /etc/hosts file

    Hi,
    While doing some testings with my network this afternoon, I noticed that there's this strange line in my /etc/hosts file:
    ::1 localhost
    Anybody has any idea what the "::1" is for? The only thing related to network that I had recently installed is VPN Tracker. Could it be VPN Tracker that added that line to the hosts file?
    Thanks in advance for your help!
    Frank
    PowerBook G4   Mac OS X (10.4.8)  

    It's supposed to be there, here's a fresh install's complete hosts file...
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost "
    Not sure what it means... may be a 16 bit number though! :-D

  • The new entries made in /etc/hosts file is not picked up by Weblogic.

    Hi All,
    I have come across a scenario where i have changed the IP address of a particular host name (which was already present in etc/hosts) to point to a new IP address.
    After i did this change, when i do a telnet test to the same hostname, i can see it is getting connected to the new IP to which i changed. But my service which is deployed on weblogic 10.0 still keeps sending requests to the old IP which i commented in the etc/hosts file instead of the new IP address.
    My question is will weblogic cache the data in etc/hosts file somewhere?
    Thanks in anticipation..
    Madhu

    Application deployed on weblogic server will pick the IP address of the server on which the application is deployed .
    IP address or listen address for weblogic server can be configured in 3 different ways :
    Listen Address : Blank --- This means that the server will listen to all the interfaces available on the Machine .
    Listen Address : IP address or Hostname --- The server will listen only to the specified IP address or the hostname .
    Listen Address : : localhost --- The server will be listening only on localhost address and will not be accessible remotely .
    Please check what it the listen address specified at you end.
    Thanks,
    Sandeep

  • Solaris10.. need to remove "::1 localhost" from /etc/hosts file

    I know i have IPV6 disabled (through install options) but i still see "::1 localhost" entry in the /etc/hosts file.. This is related to localhost with IPV6 address ::1.. why it is still there.. what is it's impact.. how can i remove it if i decide to remove..
    Thanks, appreciate help.
    S.

    It could be there if you linked /etc/hosts (or /etc/inet/hosts to /etc/inet/ipnodes). Or recreated the hosts-file from ipnodes (or it could be there by default and removed by my jumpstart, which means i would be unaware of it :-)
    And no, you don't need it if you are not running IPv6, in fact removing it will eliminate a few error messages.
    On all non-IPv6 systems i install i link /etc/inet/ipnodes to /etc/inet/hosts, in order to eliminate errors when changing IP addresses of the host and odd resolv-conflicts (which also removes any reference to ::1), and so far i have never experienced any issue with that.
    .7/M. x2000 :)

  • Which java keyword cannot be used inside the body of a static method?

    Which java keyword cannot be used inside the body of a static method, but may be used without problems in a non-static method?

    But javac doesn't complain. So I was not partially wrong -- I was completely wrong.It's still better not to use the "this", though. When you explictly reference a static member via an instance reference (theFoo.bar or this.bar, as opposed to Foo.bar) the JLS requires a check that the reference is non-null. Clearly "this" is always non-null, but javac still puts in half of the check. Take the simple class public class Test {
        static int field;
        public void setField(int i) {this.field=i;}
        public void staticSetField(int i) {field=i;}
    } and observe the bytecodes produced: $ javap -c Test
    Compiled from "Test.java"
    public class Test extends java.lang.Object{
    static int field;
    public Test();
      Code:
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
    public void setField(int);
      Code:
       0:   aload_0
       1:   pop
       2:   iload_1
       3:   putstatic       #2; //Field field:I
       6:   return
    public void staticSetField(int);
      Code:
       0:   iload_1
       1:   putstatic       #2; //Field field:I
       4:   return
    }The JIT will get rid of it, but you may as well avoid the waste in the first place. (And if you really do want to check that the reference is non-null, do the check explicitly so that maintainers know it's intentional).

  • Which wattage adapter should I use with the composite cable with my iPad?

    Which wattage adapter should I use with the composite cable when connected to my iPad while watching T. V. .

    Ultimately, use the power adapter that came with the iPad. But you should use any USB based power adapter that has a 10 watt/ 2 amp or higher power rating. Look close when buying a thrid party adapter, if it does not specify 10 watts/2 amps it is a lower 5 watt/1 amp charger that will not work.

  • Which text app can I use with the iOS4.21 ipod touch?

    Which text app can I use with the iOS4.21 ipod touch? 

    Just Google for BT keyboards. Make sure they say they work with iOS devices. You need a 3G or later iPod.
    Whynot just the standard samll APple one:
    http://store.apple.com/us/product/MC184LL/B?fnode=MTY1NDA1Mg

  • Event ID 1012 - There was an error while attempting to read the local hosts file

    When I start my Computer after it has been turned off overnight (switched off at the Power supply) I get a Blue screen and have to reboot the PC. in the Event log it has this error: Event ID 1012 - DNS client events - There was an error while attempting
    to read the local hosts file.
    Once the PC has booted evrything is O.K. I can restart the PC with no problems, it only seems to happen if the PC has been switched off for a while.
    I am connected to the net via an Netgear dg834v4 Modem/Router
    Windows 7 Ultimate
    Intel Q8200 CPU
    2 x 360 Gb HDD
    ATI 4680 !Gb Video Card
    Digital HDA X-Mystique 7.1 Sound Card
    Aver media 777 TV Tuner card.
    Thank you
    jeepers01
    After further Investigation it seems that this error is Not responsible for my Blue screening......I started my PC after leaving it off all night, and it started normally, but i still have this error in the Event Log - System.....I have searched the Technet
    forums (and there is a lot of ID 1012 errors) but non relating to my problem....If anyone knows what is causing this error and how to fix it, i'd be Grateful....although it does not seem to affect the PC in any way that i can see.
    thanks
    jeepers01

    Since Windows system uses separated user mode and kernel mode memory space, stop errors are always caused by kernel portion components, such as a third-party device drivers, backup software or anti-virus services (buggy services).
    The system goes to a BSOD because there is some exceptions happened in the kernel (either the device driver errors or the service errors), and Windows implements this mechanism: When it detects some errors occur in the kernel, it will kill the box in case
    some more severe damage happens. Then we get a blue screen or the system reboots (it depends on what the system settings are).
    To troubleshoot this kind of kernel crash issue, we need to debug the crashed system dump. Unfortunately, debugging is beyond what we can do in the forum. A suggestion would be to contact Microsoft Customer Service and Support (CSS) via telephone so that
    a dedicated Support Professional can assist with your request. Please be advised that contacting phone support will be a charged call.
    To obtain the phone numbers for specific technology request please take a look at the web site listed below:
    Microsoft - Help and Support
    If you are outside the US please see
    Microsoft Worldwide Home for regional support phone numbers.
    Meantime we can try some available steps as a general troubleshoot.
    1. Please remove the antivirus and run the system with a period. If the issue does not occur, mainly focus on antivirus settings and compatibility. 
    2. Disable Automatic Restart and see detail information on the blue screen.
    1).Click Start, in the Start Search box enter sysdm.cpl.
    2).Click the tab Advanced. Under Startup and Recovery, click the Settings button.
    3). Uncheck “Automatically restart”.
    4). On the drop-down menu “Write debugging information”, choose “Small memory dump”.
    5). Click OK.
    When Blue Screen displays, you may find some useful information.
    Arthur Xie - MSFT

  • How to use /etc/hosts file

    how to get Mac OS "X" 10.6.x to use /etc/hosts file and/or /etc/resolv.conf file(s) (ala Unix-style); instead of using some other mechanism?

    I 'thought' that SnowLeopard (somewhere in the "Support" arena) told me that 10.6 (SnowLeopard) did NOT use /etc/hosts, but I am corrected, and now understand through a number of replies here (Apple-Support-Discussions) and other responses that SnowLeopard (10.6 (I'm at 10.6.7) DOES USE /etc/hosts... - AND YES _ I'm attempting to prevent some things, and have some web-site-development-things go to a local-server, etc. etc. etc. - but - I guess my 'answer' was supplied by a number of people and that my ...nix background and my familiarity with /etc/hosts is fine and working well...
    thanks to one and all who helped! - I'm now also well-acquainted with dscl, dscacheutil, and other such utilities...
    THANKSSSSS!!!!!!!

  • "! The song [...] could not be used becuz the org'l file could not be found

    ERROR MESSAGE: "! The song [...] could not be used because the original file could not be found. Would you like to locate it?"
    Uh, YES. The song is already there and why are you not recoginizing it, iTunes? What automation can I possible enable to get rid of this message so that iTunes actually sees my MPEGS and does not require me to manually browse to the file which is already there?

    You'll need to help iTunes locate the files for you then reacquaint your library with your files. Here are some articles that can help you:
    No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    This article may also be helpful:
    Instructions for finding missing music and video downloads
    http://support.apple.com/kb/TS1408

  • When i click on a song to plat or drag it to a playlist an exclaimation appears next to it . a message says , could not be used because the ori ginal file could not be found. does anyone know how to fix this problemn?

    When i click on a song to play or drag it to a playlist an exclaimation mark appears next to it. a message says , could not be used because the original file could not be found. does anyone know how to fix this problem?

    1. delete this songs from your liblary
    2. go File -> Add File to Liblary... (Ctrl+O) or File -> Add Folder to Liblary

  • How do I add a new IP to the local host file?

    One of the sites I manage has been migrated to a dedicated server. Before changing the nameservers, I need to proof all the pages. To do so, I need to add the new IP number to my local computer local host file.
    How is that done?
    OSX 10.9
    david

    Download TextWrangler, choose Open File by Name from the File menu, provide /private/etc/hosts as the path, and enter them using the same format as the 127.0.0.1 line.
    (92337)

Maybe you are looking for

  • XI installation on Windows 64 bit

    Hi We are trying to install XI on windows 2003 enterprise edition 64 bit. When we start the sapinst.exe from the MaterDVD, it gives the following error "<i>...sapinst.exe is valid but for a machine type other than the current machine</i>" we have che

  • Using iPhone 3Gs as an iPod Touch, while using my new Verizon iPhone 4 as a phone? Lost original sim?

    Well, Im at a loss for this one. A few weeks ago I jumped over to verizon predicting that Id rather get an iPhone 4 and wade through the intermediate (iPhone 4s, iPhone 3GS) release until the iPhone 5. I planned on using my old iPhone 3Gs (AT&T, of c

  • Problems using printer via NetCenter drive

    Hi! I recently purchased a MacBook and a Mac Pro, and would like to use my networked printer with them, but it is not working. I have an Epson Stylus Photo R300, and it is connected to a Western Digital NetCenter WDXE5000KS via USB, which is hooked t

  • Sync problems with iCloud + Exchange

    Since 3-4 weeks the email/calendar synchronization with my iPhone's (3GS and 4S) and iPad 2 is nor working properly any more, I have in parallel installed an iCloud account for private and an Exchange account for business use. Only if I turn the iPho

  • Versions in CO

    In versions creations in CO there is a option to set each fiscal year . In that there are two options like copying allowed and integrated plannning. For what purpose do we use that options? Pls explain Regards babu