Is there a parameter for the ConversionPattern that will include the host computer's name? e.g.  &lt;conversionPattern value="%hostname %date [%thread] %-5level %logger [%ndc] - %message%newline" /&gt;   I can't find anything in the log4net documentation that lists what % fields are available...
26818
I am using Log4Net with the AdoNetAppender to log messages from a simple systray application into a SQL Server 2005 database.  I want to log the machine name along with the log message because this application will be running on multiple machines and I need to know on which one the message originated.  But, I cannot find a way to expose this information via the log4net.Layout.PatternLayout that I am using with the appender.  Is there a way to log the machine name via log4net in this manner?
106844
I want to test in a script whether a hostname resolves to something other than 127.0.0.1 as a pre-flight test for an install script. The tools I know (dig, nslookup) specifically query DNS. In my situation a correct entry in /etc/hosts is a valid configuration. So the question is:  Is there a dig-like tool, ideally already on the system, that does the full name-resolution process via nsswitch.conf, like (for example) ping does?  dig my-test-server-that-only-exists-in-etc-hosts    returns NXDOMAIN.
115346
Is it possible to determine the name of the VMware host (ESX or ESXi) that my guest resides in, from within the guest itself?  I would expect this to be possible via VMware Tools, but am not sure where to look.
119558
I have seen a few different flavors of exception logging utility out there, and a common concept is to capture the class and method that were running when the exception was thrown. In the case that made me wonder this, the logger is used for more than just exceptions. It has method signatures like:  public static void logMessage     (LoggingLevel loggingLevel, String className, String methodName, String message)   It seems to me that we should be able to get the className and methodName parameters programatically. Can it be done? How?
47726
At the moment a default entry looks something like this:  Oct 12, 2008 9:45:18 AM myClassInfoHere INFO: MyLogMessageHere   How do I get it to do this?  Oct 12, 2008 9:45:18 AM myClassInfoHere - INFO: MyLogMessageHere   Clarification I'm using java.util.logging
64274
It seems there's no way to tell bind that *-foo.example.com should resolve to eg. 10.1.2.3, while *-bar.example.com resolves to 10.2.3.4. Is there any workaround? Can some names eg. resolve with an external program? Or should I change bind to eg. ?  I'm trying to avoid buying another SSL wildcard cert. (With wildcard certs, such as *.example.com, it's not possible to allow dots in the * part.)  Specifying all *-foo or *-bar names in the zone file is not an option, since I need to be able to create both type of addresses on the fly.
48338
When writing an instruction about connecting to a computer using ssh, telnet, etc., I'm not sure what spacing to use in this familiar spoken phrase:   "Log in to host.com" "Log into host.com" "Login to host.com"   Maybe this is entirely subjective or the realm of industry jargon, but I couldn't think of anywhere else to ask.  Any insight?
86678
I have a Param block in my script   Param (     [Parameter(Mandatory=$True)]     [string]$FileLocation,      [Parameter(Mandatory=$True)]     [string]$password = Read-Host "Type the password you would like to set all the users to" -assecurestring )   Can I use the Read-Host CmdLet in a required Parameter field? if not what can I do to make sure I take in the correct type of variable type so I can pass it to a user creation process?
98980
I am running ddwrt v24-sp2 on three WRT54GL routers. These routers all send their syslog information to the same remote server using syslogd  The problem is that in the logs the hostname will change between the LAN IP and 127.0.0.1.  This makes it hard to tell which device is doing what when I have several events listed as localhost and makes it impossible to script events to happen when certain syslog messages are received.   Does anyone know of any way I can differentiate which message comes from which host? Is there some option I did not see to for a tag or extra information into the message. Can I force the host to send its hostname with each message?  Here is an example of the syslog output:     06-28-2010 11:43:57    User.Info   10.255.255.2    Jun 28 17:43:58 : >Connecting to *.*.*.*      06-28-2010 11:43:54    User.Info   127.0.0.1   Jun 28 17:43:54 : >Connecting to *.*.*.*       06-28-2010 11:43:52    Daemon.Info 10.255.255.1    Jun 28 17:43:53 >chillispot[428]: chilli.c: 1088: Rereading configuration file and doing DNS lookup      06-28-2010 11:43:51    Daemon.Info 127.0.0.1   Jun 28 17:43:52 >chillispot[623]: chilli.c: 1088: Rereading configuration file and doing DNS lookup      06-28-2010 11:43:51    Daemon.Info 10.255.255.3    Jun 28 17:43:51 >chillispot[4185]: chilli.c: 1088: Rereading configuration file and doing DNS lookup   thanks  Chris
21027
Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?  It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames.
48212
I am trying to see if I can have a specific Hosts file that only a Proxy Server application on my machine will use while the remainder of the machine uses the normal proxy server.  For example, I want to take (and this is JUST AN EXAMPLE) www.cnn.com and map it to 127.0.0.1. However, I only want this to happen when connected to a proxy server application running on my machine.  Then I would configure Firefox to use the Proxy Server while IE doesn't use the Proxy server.  Could I use something like Fiddler, Charles, or some other Proxy/Debugger and have only that application use a custom Hosts file?  Why? This allows me to compare the live web site with what I have developed locally. Trust me, I need the host name mapping for a reason. I'm using HTML from the live site with local CSS changes. I need to compare those CSS changes to what is in Production environment.
102570
We have tried both the /etc/hosts and also /etc/sysconfig/network. Edited both files and service network restart. Yet the hostname is showing as localhost.localdomain. How to resolve on this? Googling almost all talking about the same method too.
44056
How to (programmatically, without xml config) configure multiple loggers with Log4Net? I need them to write to different files.
118187
How do I change my logname?For e.g: xyz@ubuntu in the terminal how do I change xyz? I have tried this command   usermod -l *newname* -d /home/*newname* -m *oldname*   but that gave me an error user xyz is currently used by process PID  Command line solutions are appreciated.
18615
This is a  about hostname-awareness and proxying.   I know that some protocols are hostname-aware; that is, when I connect to the HTTP server at www.example.com it knows I want www.example.com's HTTP service, not www.example.net's, even though they are on the same IP address.  How can I do this for protocol foo?  (Temporary note: this question appears pursuant to .)
89885
Is there a clean, simple way to get an IP address for a network interface from /proc, similar to the way I can get the MAC address for a network interface? Ideally I would just type cat /proc/&lt;foo&gt;/{interface_name} and get the IPv4 address.  I'd rather not run anything other than cat.
57475
If we have example.com we would setup things something like this: $ORIGIN example.com. @  1D  IN  SOA ns1.example.com. hostmaster.example.com. (                   2002022401 ; serial                   3H ; refresh                   15 ; retry                   1w ; expire                   3h ; nxdomain ttl                  )           IN  NS     ns1.example.com.           IN  NS     ns2.example.com.  since in the parent zone .com. there is already NS record for the example.com. child zone and A glue record for the ns1.example.com. for what purpose do we state NS records again in the child zone? and also, do we need to state A record for the name servers in the child zone itself?