Re: gethostbyname



If you need lowercase then call a routine to convert. This is available in
most all scripts and languages.

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.

"Ace Fekay [MVP]" <PleaseAskMe@xxxxxxxxxxxxxx> wrote in message
news:OGyyeqtuGHA.5084@xxxxxxxxxxxxxxxxxxxxxxx
In news:1155014578.317346.160010@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
rpv30@xxxxxxxxxxx <rpv30@xxxxxxxxxxx> stated, which I commented on below:
Hi

We have a Windows 2003 server where an application program gets the
host name using the gethostbyname() API. This was returning the FQDN
in

all lowercase, but now it has started returning the hostname in all
uppercase. What could be the issue here? We are facing problems here
since we try to insert this data into a case sensitive DB.

The server is in a domain. It used to return server.domain.com but now
it returns SERVER.domain.com

Regards
Prasanna Venkatesh R

Actually DNS is not case sensitive, but if the records were entered as
uppercase, then these queried records will return as uppercase. Check the
actual records. If the workstations' or servers' hostnames are uppercase,
they will register into DNS as such.

--
Ace
Innovative IT Concepts, Inc
Willow Grove, PA

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer

Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows
you to easily find, track threads, cross-post, sort by date, poster's
name, watched threads or subject.
It's easy:

How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Infinite Diversities in Infinite Combinations
Assimilation Imminent. Resistance is Futile
"Very funny Scotty. Now, beam down my clothes."

The only constant in life is change...



.



Relevant Pages

  • Re: gethostbyname
    ... The server is in a domain. ... uppercase, then these queried records will return as uppercase. ... Microsoft MVP - Directory Services ... Instead of the website you're using, I suggest to use OEx (Outlook Express ...
    (microsoft.public.win2000.active_directory)
  • Re: Case-insensitivity considered harmful
    ... In many environments of the 1960s, monocase, specifically uppercase, ... you could get a lowercase print chain mounted, ... Bell Labs UNIX & C ... While there are some exceptions, older languages tend to ...
    (comp.arch)
  • Re: Case-insensitivity considered harmful
    ... - it is fastest to type lowercase ... CamelCase, either UpperCamelCase, or lowerCamelCase, are not too bad, ... and almost all of them were lowercase. ... UPPERCASE, and, and occasionally, ...
    (comp.arch)
  • RE: Outlook Exchange - Receipents Name in Lower Case
    ... this behavior is by design that if we use SMTP address generator ... there will be uppercase and lowercase for the SMTP ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: How to prevent cdr from capitalizing symbols?
    ... The original character set for Lisp was ... I don't think the IBM 704 or 709 even had a typewriter option. ... Uppercase only looks strange if you're used to lowercase. ...
    (comp.lang.lisp)