[SOLVED] globbing in /etc/hosts or something similar

Is there any way to glob addresses in /etc/hosts?
If not, which seems to be the case, is there something else that could achieve a similar effect?
Example:
127.0.0.1 *.localhost # enable subdomains on localhost (with Apache virtual hosts)
It's not that tedious to manually add them and I could probably write a script, but it would be useful for other things (127.0.0.1 *.google.* )
Last edited by Xyne (2010-03-24 09:04:25)

BIND supports DNS wildcards, which seems to be what you're after.
Just for fun I went through the process of setting this up, and it's not too difficult.  I did need to do a bit of research to figure out the syntax for the DNS zones.  Fortunately, there are plenty of resources which describe this.
Briefly, the process I went through for wildcard domain resolution:
1) Install bind and invoke named
2) Ensure the nameserver is included in resolv.conf and that the DNS service is in the host DB of /etc/nsswitch.conf
3) Edit /etc/named.conf and the corresponding zone file.
There's an article on debian-administration which focuses on exactly the case you proposed.
Last edited by chpln (2010-03-23 11:04:56)

Similar Messages

  • Is there a similar file to windows\ssytem32\drivers\etc\hosts in OS X

    Hi,
    I am running a Windows 2003 Server with several websites. I would like to view my websites from my new Imac, however I keep getting prompted for the user name and password for the router.
    In windows on my old computer I could edit the file C:\Windows\System32\Drivers\etc\hosts with the IP address and URL of the site and it would open. Is there a similar file in the Mac OS X 10.5.7 software.
    Many Thanks in anticipation

    {quote:title=Herr Lazaro wrote: > So if /etc/hosts works reliably I'll probably switch to it}{quote}
    Adding host records by editing the /etc/hosts file is not entirely reliably. Since Leopard, some people have reported issues of the added host records "mysteriously" disappearing, or Apache not being able to properly resolve the added hosts. The bigger issue is that the modifications in the /etc/hosts file can create unwanted side effects in the normal functioning of services like the mail server and others.
    Since Leopard, there has been an alternate way to add host records using the dscl utility. In fact, by many, it is considered the better, more reliable, and safer method.
    You can read this recent article to see how its done:
    http://tomafro.net/2009/07/dscl-the-easy-way-to-add-hosts-on-osx
    There are a number of additional articles on the web about using dscl for adding host records to OS X.
    The choice, of course, is yours. If you are using the /etc/hosts file without issue, then it might be safe to continue doing so. But, if your system starts experiencing domain name resolution issues or problems with services such as the mail server, you should consider switching to and using the dslocal database to manage your host records.

  • Something similar to /etc/profile in LDAP?

    My /etc/profile contains a logging feature which tracks the history of a local user. It doesn't work for ldap users though since I don't think LDAP looks at this file when ldap users login to a client.
    Is there some way to make ldap users use this file as the initial login profile or is there some way to setup something similar in LDAP? ldapaddent won't add this file. The only thing I can think of is to make some sort of change on cn=default,ou=profile,dc=example,dc=com but I'm unsure as to whether that will work or how exactly to set it up.
    Any help on this would be appreciated. Thanks.

    Hi Liam. Thanks for your reply. When I used the Update Credit Card option and tested the form, I got the error message "Credit Card Payment Failed….Invoice Number Not Found". But after search for that error message in this forum, I found out that I should be using the "Credit Cards (existing orders)" option. This has worked, ie payment was successfully processed and was applied to the existing order; a new invoice was not created. I have received a receipt from the payment gateway (eWay) but not one from BC. Also, upon successfully submitting the form, I was then taken to a totally blank page. I'll have to do some more testing to see whether the blank page was just a one off. If not, I'll try adding code in the Action part of the form to redirect to specific page.
    So thanks for your help. Though it didn't give me the correct answer, it l led me to it.

  • [SOLVED] Strange line in /etc/hosts

    I was checking my /etc/hosts when I came across this line:
    64.50.236.214 releases.mozilla.org
    Should that line be there? Is it safe?
    That ip points to a mirror site.
    Last edited by Skoll (2010-01-14 19:54:14)

    toxygen wrote:you didn't add it?  you can always comment it out with a hash # and see if it gives you problems (restart network afterwards (sudo /etc/rc.d/network restart)).  doesnt look like it would do any harm though, other than limiting you to that one mirror
    No, I didn't. That's why I was so worried.
    Edit: I can download plugins with Firefox even without that line. I found out that my brother had used an arch live cd to change /etc/hosts because he couldn't download plugins, the problem mcmillan mentioned.
    Thank you guys for quick answers.
    Last edited by Skoll (2010-01-14 19:53:39)

  • [SOLVED] Is there something similar to FinePrint for Linux?

    Hi,
    when I was still using Windows, I used a freeware similar to FinePrint (don't remember the name) and it was very useful. So far this is the only application I miss. Is there something similar to that available for Linux?
    Alex
    Last edited by AKL (2014-04-07 07:17:44)

    Stuff means anything that can be printed, so it is not about creating pdf's or something similar. Just to watch and edit what you want to print before you actually print it to paper, and that independent of the program  you are using.
    karol wrote:What 'stuff' is - any kind of documents or e.g. just pdfs?
    http://alternativeto.net/software/finep … form=linux -> https://aur.archlinux.org/packages/boomaga/
    That is a useful site, and boomaga seems to do the trick, thanks!

  • Setting up /etc/hosts (SOLVED)

    How can I do that. Every time I launch Xfce4 I get a message about adding my name to the file. I add it like:
    213.112.235.47 wilma.bredbandsbolaget.se wilma
    And the message disappears but some programs dont work. Any suggestions?

    Just put the hostname you use in etc/rc.conf at the end of the line with localhost in /etc/hosts and you'll be fine.
    The code below shows the way i have set it up.
    networking part of etc/rc.conf
    # NETWORKING
    HOSTNAME="julius"
    /etc/hosts
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost julius
    # End of file

  • Ntrights.exe Windows 2008 R2 Resource Kit Tool? Does it exist or is there something similar I can use?

    I am running Windows Server 2008 R2 Standard as a DC
    I am trying to add users/groups to the following local policies through a GPO, however I need to script it out using something similar to ntrights.exe. I do not want to do it through the GUI because this is going to be a re-occurring process.
    Below are the policies I am trying to configure via some kind of command prompt. I do not think I can do this with PowerShell 2.0 even with the import-module grouppolicy cmdlets.
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow log on locally
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Debug programs
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Force shutdown from a remote system
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Shut down the system
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Change the system time
    Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow logon through Remote Desktop Services
    Would it be safe to copy the Windows Server 2003 ntrights.exe resource kit tool and try it on Windows Server 2008 R2? I am working on a virtual test lab environment so I can actually take a snapshot before hand but wanted your expert thoughts on it first.
    Thank you in advance.

    I found the solution.....You can actually use "quoted" host names in the templates instead of the SIDs. Make sure that for Domain User Accounts you specify the Domain prefix. For Local User accounts you can just specify the local user name.
    The filename of the template that I made is LOCAL_SEC_TEMPLATE.inf
    Here's what's inside that LOCAL_SEC_TEMPLATE.inf template:
    [Unicode]
    Unicode=yes
    [Registry Values]
    [Privilege Rights]
    SeInteractiveLogonRight = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins"
    SeDebugPrivilege = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins"
    SeRemoteShutdownPrivilege = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins"
    SeSystemtimePrivilege = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins","LOCAL SERVICE"
    SeShutdownPrivilege = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins"
    SeRemoteInteractiveLogonRight = "Administrators","XXDIGIHD\DigiOps","XXDIGIHD\Domain Admins","Remote Desktop Users"
    [Version]
    signature="$CHICAGO$"
    Revision=1
    [Profile Description]
    Description=Local Security Template
    Here's how I applied the template to the Local Security Policy: (You can use PowerShell or the regular command prompt)
    SECEDIT /configure /db secedit.sdb /cfg "c:\LOCAL_SEC_TEMPLATE.inf"
    Here's the link on using SECEDIT >> http://www.appdeploy.com/tips/detail.asp?id=23
    Thanks for your help Gunter, this issue is solved.

  • Editing etc\hosts file on windows xp for apps. problem post installation.

    Hi all,
    I was able to install 11.5.10.2 apps on my win xp prof machine. During that process I had to edit the etc/hosts file in windows directory as a work around for that domain name field during installation. Also added the primary DNS suffix as 'suneel.com' . I gave the domain name as 'suneel.com' during installation. The RapidWiz is taking localhost as the system name and referring to this system as localhost.suneel.com, though the actual system name is 'websoft-xp' .
    The host file on Apps machine has the following entries:
    127.0.0.1 localhost
    127.0.0.1 localhost.suneel.com suneel.com
    127.0.0.1 websoft-xp.suneel.com
    So when I connect to apps login server from other systems in lan, I've to edit their hosts file and add an entry for localhost.suneel.com to point to its ip address or else the apps throws an error after logging in as operations/welcome using a different url say 192.168.1.4:8000 . Is there a way to get around this issue?
    More over I'm not able connect to VIS db from other systems. The oracle clients give an error 'No listner' at this address. (The original listener was listening at localhost.suneel.com:1521). So I tried to create a new listerner from Net Manager that actually listens at websoft-xp (the real system name) but it throws me an error 'A valid log file is required' while saving the network configuration and prevents me from saving the network configuration.
    Did I do something wrong with the hosts file during installation or did i miss any entries in that file thats causing this? Any solutions for the above problems will be appreciated?
    Thanks
    Suneel
    Message was edited by:
    suneelgv

    Well I tried that option but for some reason it didn't work for me. It kept giving the tns:connection closed error. Then I searched in metalink and found this note : Note:333158.1
    It suggested setting tcp.validnode_checking = no
    in sqlnet.ora. in
    F:\oracle\visdb\9.2.0\network\admin\VIS_websoft-xp
    And it works. Hope this helps someone facing a similar problem. Good luck.
    BTW how do I run autoconfig?
    Thanks,
    Suneel Gundlapalli

  • /etc/hosts for dhcp

    Hello People
    i have installed 11.2.0.1 on oracle linux release 5 update 7 and is working fine
    i have logged into the actual system where i installed and checked that sqlplus "/as sysdba" is working and i can log into the database
    my company has all its computers connected by a lan cable that provides both file sharing and internet connection..
    so is this what dhcp means??
    because, i think so,so here is what my /etc/hosts file looks like
    127.0.0.1 unknown485b39d0b515.local.lan unknown485b39d0b515
    127.0.0.1 localhost.localdomain localhost
    yeah it has only two lines(my bad, i had been doing some tweaking)
    my ifconfig output looks like this
    eth0 Link encap:Ethernet HWaddr 48:5B:39:D0:B5:15
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:21980 errors:0 dropped:0 overruns:0 frame:0
    TX packets:14479 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:17251832 (16.4 MiB) TX bytes:1814446 (1.7 MiB)
    Interrupt:27 Base address:0x8000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4439 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4439 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2788171 (2.6 MiB) TX bytes:2788171 (2.6 MiB)
    virbr0 Link encap:Ethernet HWaddr 2E:12:83:50:CA:6A
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:4190 (4.0 KiB)
    and the error i am right now getting is this
    [oracle@unknown485b39d0b515 ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 8 12:03:27 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-12547: TNS:lost contact
    tell me if i need to elaborate on anything
    thanks in advance

    Hi,
    In the etc/hosts you have add ur ip address with hostname, something like this it should be.
    127.0.0.1 localhost.localdomain localhost
    10.93.10.XX mysystem.localdomai
    because, i think so,so here is what my /etc/hosts file looks like
    127.0.0.1 unknown485b39d0b515.local.lan unknown485b39d0b515
    127.0.0.1 localhost.localdomain localhostFor the below TNS lost contact error, recently I faced a similar kind of error:
    and the error i am right now getting is this
    [oracle@unknown485b39d0b515 ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 8 12:03:27 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-12547: TNS:lost contact
    Check your ORACLE_HOME/bin folders rights.
    $ ls -ltr oracle
    -rwxr-xr-x 1 oracle dba 25485683 Jul 2 12:02 oracle
    $ chmod 6751 oracle
    $ ls -ltr oracle
    -rwsr-s--x 1 oracle dba 25485683 Jul 2 12:02 oracle
    And check whether your user has dba group.
    This may help you..
    Thanks,
    nonuday

  • Proper /etc/hosts for my situation

    Hello all,
    I just (finally) got set up through an ISP which assigns me (well the DSL modem) a publicly routable dynamic address.  Anyway, I've setup a dyndns.org hostname, and ddclient to update it, and it routes beautifully to my linux box, through the dsl modem which has the ssh port (and other services as they come up) forwarded to the proper box.
    Anyway, I was updating my /etc/hosts, and I'm wondering if I have it setup correctly.
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 XXXXXXXX.homelinux.org localhost.localdomain localhost XXXXXXXX
    192.168.0.51 XXXXXXXX.homelinux.org XXXXXXXX
    192.168.0.50 regulator-pc regulator-pc.localdomain
    192.168.0.1 qwest-modem qwest-modem.localdomain
    192.168.0.2 regulator-bridge regulator-bridge.localdomain
    # End of file
    Please replace all instances of XXXXXXXX with my actual hostname.
    This box (XXXXXXXX) has a static IP of 192.168.0.51, is that line correct?
    I've left the (hostname.localdoman) stuff in my hosts lists since at one point I had a caching bind server running on my local net, but I've yet to set that up on this network.
    regulator-bridge is my dd-wrt'd wrt54g, which now is set up in client bridge mode to allow the boxes with ethernet ports to join the network (routed off the DSL modem), and so I don't have to run an ethernet cable across the living room to the DSL modem.  Works like a champ.
    Appreciate any input.
    Thanks.

    Hi,
    In the etc/hosts you have add ur ip address with hostname, something like this it should be.
    127.0.0.1 localhost.localdomain localhost
    10.93.10.XX mysystem.localdomai
    because, i think so,so here is what my /etc/hosts file looks like
    127.0.0.1 unknown485b39d0b515.local.lan unknown485b39d0b515
    127.0.0.1 localhost.localdomain localhostFor the below TNS lost contact error, recently I faced a similar kind of error:
    and the error i am right now getting is this
    [oracle@unknown485b39d0b515 ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 8 12:03:27 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-12547: TNS:lost contact
    Check your ORACLE_HOME/bin folders rights.
    $ ls -ltr oracle
    -rwxr-xr-x 1 oracle dba 25485683 Jul 2 12:02 oracle
    $ chmod 6751 oracle
    $ ls -ltr oracle
    -rwsr-s--x 1 oracle dba 25485683 Jul 2 12:02 oracle
    And check whether your user has dba group.
    This may help you..
    Thanks,
    nonuday

  • Network-profiles (1) and /etc/hosts

    Hi everyone,
    i've got a few network-profiles, especially in one network I have to use a static ip to connect to the internet. The only entry in the /etc/hosts which works correctly - without any error messages - for me, is
    192.168.0.99 localhost.localdomain myhost
    If I use something like 127.0.0.1 in front and simply add my hostname at the end, I can't connect with the Inet, unfortunately. I did not test it, but I'm pretty sure, that this host configuration won't work in any other network, where I get a dynamic IP from the DHCP. Is there a possibility to write the content of the /etc/hosts with netcfg, like the /etc/resolv.conf for example?
    MfG Skit

    Because you didn't specify what localhost was in your hosts file. It only knows of localhost.localdomain(does not imply 'localhost') and acer being the loopback.
    I think he understood that.
    'localhost' is universally understood as the loopback.
    this is some kind of 'magic' answer isn't it? the resolving doesn't come out as a miracle... and that is IMHO what needs explanation.
    his computer alone doesn't (obviously) get it because sure, it's not set. now what 'magic' makes it known when a cable is plugged in? the computer tries to reslove locally (via /etc/hosts), fails at it, and then asks the dns server about it. so I reckon the dns server is instructed on replying '127.0.0.1' for a 'localhost' hostname request. why so? because dns servers have an option to look at their local /etc/host for resolving before delegating to bigger servers, so the dns server certainly has localhost matching 127.0.0.1 in his /etc/host, and blindly replies accordingly, oblivious to the fact that he is replying about his 'own' 127.0.0.1 to someone else.
    Last edited by lloeki (2008-01-16 08:24:12)

  • Weblogic 7.0 sp4 failing to resolve from /etc/hosts on solaris 8

    Hello,
    I am facing a strange problem on one of the installations of weblogic 7 in using
    the JNDI lookup. This weblogic instance throws me the following exception whenever
    I try to lookup through JNDI a remote EJB;
    weblogic.utils.NestedError: This address was valid earlier, but now we get: -
    with nested exception:
    [java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net]
    java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net
    at java.net.InetAddress.getAllByName0(InetAddress.java:566)
    at java.net.InetAddress.getAllByName0(InetAddress.java:535)
    at java.net.InetAddress.getByName(InetAddress.java:444)
    at weblogic.rjvm.JVMID.address(JVMID.java:396)
    at weblogic.rjvm.ConnectionManager.setRemoteChannels(ConnectionManager.java:1709)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(ConnectionManagerServer.java:506)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:766)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:649)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:813)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:708)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    --------------- nested within: ------------------
    weblogic.utils.NestedError: This address was valid earlier, but now we get: -
    with nested exception:
    [java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net]
    at weblogic.rjvm.JVMID.address(JVMID.java:403)
    at weblogic.rjvm.ConnectionManager.setRemoteChannels(ConnectionManager.java:1709)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(ConnectionManagerServer.java:506)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:766)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:649)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:813)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:708)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    >
    I have the corresponding entries in the /etc/hosts file on the machine for these
    host names. The telnet and a standalone java client can resolve these host names
    but not weblogic. Can anybody give some hints to fix this issue? The same code
    and same version of the weblogic work fine on other two machines.
    I have attached the application log file for the exact error messages.
    Many thanks ...
    VInay
    [WLSError.txt]

    Hi,
    We are farcing a similar issue, pls let me know if you have found a solution for
    following issue
    Regards,
    Mandar
    "Vinay Alva" <[email protected]> wrote:
    >
    >
    >
    Hello,
    I am facing a strange problem on one of the installations of weblogic
    7 in using
    the JNDI lookup. This weblogic instance throws me the following exception
    whenever
    I try to lookup through JNDI a remote EJB;
    weblogic.utils.NestedError: This address was valid earlier, but now we
    get: -
    with nested exception:
    [java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net]
    java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net
    at java.net.InetAddress.getAllByName0(InetAddress.java:566)
    at java.net.InetAddress.getAllByName0(InetAddress.java:535)
    at java.net.InetAddress.getByName(InetAddress.java:444)
    at weblogic.rjvm.JVMID.address(JVMID.java:396)
    at weblogic.rjvm.ConnectionManager.setRemoteChannels(ConnectionManager.java:1709)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(ConnectionManagerServer.java:506)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:766)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:649)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:813)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:708)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    --------------- nested within: ------------------
    weblogic.utils.NestedError: This address was valid earlier, but now we
    get: -
    with nested exception:
    [java.net.UnknownHostException: vip1.i11.gmbpws043.gmgwh.net]
    at weblogic.rjvm.JVMID.address(JVMID.java:403)
    at weblogic.rjvm.ConnectionManager.setRemoteChannels(ConnectionManager.java:1709)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(ConnectionManagerServer.java:506)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:766)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:649)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:813)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:708)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    >
    I have the corresponding entries in the /etc/hosts file on the machine
    for these
    host names. The telnet and a standalone java client can resolve these
    host names
    but not weblogic. Can anybody give some hints to fix this issue? The
    same code
    and same version of the weblogic work fine on other two machines.
    I have attached the application log file for the exact error messages.
    Many thanks ...
    VInay

  • /etc/hosts

    I guess this belongs here, if not, mods, I apologize :)
    I set up a Centos server and was browsing logfiles and noticed that instead of the usual 'localhost' string that I see in my Arch logs it had my hostname in all of the log files. After a little digging I found this on the Debian forum. I've edited my /etc/hosts how the post describes and lo and behold, after restarting syslog-ng, I get my pretty hostname in my logs. My question is, this runs contrary to how the Beginners Guide directs to set up that file and contrary to how the Arch installer sets up /etc/hosts. Did I just mess something up or is this an oversight? I didn't want to go editing wiki pages not knowing for sure. It seems like everything is running just fine on my machine now.
    For reference, here is how my /etc/hosts was:
    127.0.0.1 localhost.localdomain localhost archdesk
    This is how it is now
    127.0.0.1 archdesk localhost
    Thanks.

    The hosts file has three parts on each line. First is the ip, second the canonical (full) hostname and the third part is an optional list of aliases. In your old situation this means that the first alias (which was used for the logfile) was localhost.
    With either:
    127.0.0.1 localhost.localdomain archdesk localhost
    or:
    127.0.0.1 archdesk.localdomain archdesk localhost
    I would expect you get the desired behaviour (not 100% sure though).
    Read
    man hosts
    to learn more.

  • Sshd ignores /etc/hosts.allow and /etc/hosts.deny

    Hello everyone,
    I've just found out that sshd ignores /etc/hosts.allow and /etc/hosts.deny completely on my machine. It doesn't make use of tcp_wrappers. I am using the standard Arch package. Either my settings are wrong, or this is a severe security problem. It was a terrible surprise to find out that my server is under severe dictionary attacks all the time, despite the denyhosts script I am using.
    These are my settings:
    /etc/hosts.deny:
    ALL: ALL
    /etc/hosts.allow:
    # some nfs daemons: 192.168.1.0/255.255.255.0
    sshd sshd1 sshd2: ALL EXCEPT /etc/hosts.evil
    mysqld: 192.168.1.0/255.255.255.0
    /etc/hosts.evil:
    195.113.21.131
    60.10.6.53
    A simple experiment to verify the settings:
    [root@charon etc]# tcpdmatch -d -i /etc/xinetd.conf sshd 195.113.21.131
    warning: sshd: no such process name in /etc/xinetd.conf
    client: address 195.113.21.131
    server: process sshd
    matched: hosts.deny line 5
    access: denied
    [root@charon etc]# tcpdmatch -d -i /etc/xinetd.conf sshd 195.113.21.130
    warning: sshd: no such process name in /etc/xinetd.conf
    client: address 195.113.21.130
    server: process sshd
    matched: hosts.allow line 10
    access: granted
    This seems to be fine. But when I go to the machine 195.113.21.131, I can simply log in with no trouble at all.
    This is really strange. Does it have something to do with the xinetd warning? I am not using xinetd... Maybe I'm doing something wrong. If you have experienced such a trouble, please give me a hint.

    elasticdog wrote:So should our package not have the ListenAddress 0.0.0.0 line uncommented by default?  My guess would be that since it listens on all local addresses by default, we're just overwriting that when specifying 0.0.0.0, which isn't valid.  That was users don't have to specify their local IP address.  Unless I'm wrong, shouldn't this be a bug/feature request for the packager?
    This doesn't seem to be a package bug... IMHO, sshd must respect all the settings in hosts.deny and hosts.allow, regardless the IP address it listens on. The behaviour I noticed seems to be much more complicated. Basic settings (daemon name mentioned in hosts.*) worked, as far as I didn't want a "per IP" configuration. For example, including the daemon in hosts.allow really enabled remote connections, but any closer specifications (subdomains, EXCEPT operator...) were ignored. Access was simply granted without further evaluation. Excluding sshd from hosts.allow worked as one would assume. When I specified ListenAddress, everything started to work properly. This is mysterious. There are millions of computers using tcp wrappers and ssh, so it's hard to believe there could be a bug.

  • How to save etc/hosts

    Hi all,
    Please help sorting my terminal, I'm having problem with my iTune everytime I want to update or restore my ipad or iphone, it keep saying "this device isn't eligible for the requested build"
    Now I tried to edit the etc/hosts using the Terminal, but suddenly all the script
    # 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
    fe80::1%lo0          localhost
    #74.208.10.249 gs.apple.com
    #127.0.0.1 gs.apple.com
    are all gone i think i accidentally deleted it. so what I did was I copy this from forum and paste it to terminal.
    But i'm having problem how to save it, when I press ^O it goes like this:
    # 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
    fe80::1%lo0          localhost
    #74.208.10.249 gs.apple.com
    #127.0.0.1 gs.apple.com
    File Name to Write: etc/hosts                                                
    ^G Get Help         ^T To Files         M-M Mac Format      M-P Prepend
    ^C Cancel           M-D DOS Format      M-A Append          M-B Backup File
    and I dont know how to save it. when I press ^X doesn't save at all.
    Please Help me.
    Thank you in advance.

    Well lets make things easier, get out of Terminal by just Quiting it or Force Quit.
    Download the free TextWrangler here
    http://www.barebones.com/products/textwrangler/download.html
    Now under the File Menu >Open File by Name
    /etc/hosts
    It should look like this, if not then just copy and paste it in.
    # 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
    fe80::1%lo0     localhost
    Now save it and give it your admin password and that's it. Easy as pie.
    Terminal's pico and vi editing programs have a lot to be desired, but serve the basic puposes.
    With Terminal you need to enter
    sudo pico /etc/hosts
    then enter your admin password to access a system file.
    It can only be done via a Admin account, however with TextWrangler not only is it much easier, you can also access system files from a Standard user account.
    the two lines
    #74.208.10.249 gs.apple.com
    #127.0.0.1 gs.apple.com
    You have there are "commented out" with the "#" symbol, basically your telling the computer to "ignore this line"
    Why you think messing with your /etc/hosts file is going to solve your primary issue with iTunes/iPad/iPhone is beyond me.
    Did you ever think that perhaps your two devices are too old for the "requested build"?

Maybe you are looking for

  • Upload data from r/3 to crm

    what are the settings required for upload bps,products,orders from r/3 to crm in middleware,r/3 and crm?

  • Greyed out podcasts but playing fine?

    Greyed out playlists. content plays ok. Any ideas why they are greyed out? More annoying than anything else.... host pc, have itunes match, all appears in order confused. Thanks, Simon c

  • Description name of the purchase order

    Hello experts, My problem is the following : we change the description name of the purchase order in SRM, then we save the document and the old name is coming back. It doesn't take into account the modification. Regards, Kiolla

  • How to reduce full-size image in Flash photogallery

    I tried my hand at building a photogallery following along Colin Smith's "How to Wow" in Flash. Everything seemed to turn out great except when I click on a thumbnail to show the full size image, it appears bigger than the stage so you only see a par

  • Today, It Decided To Stop Playing Videos.

    Strange thing happened today -- my 5G iPod, which had been happily and unfussily playing various video files since I got it, including yesterday, today refuses to do so. I select a video file, hit Play, the drive whirrs up, the screen goes video-dark