Re: gethostbyname



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: Made a domain name boo boo
    ... TO find that, use nslookup, use server 4.2.2.2 to find it. ... Microsoft MVP - Directory Services ... Instead of the website you're using, try using OEx (Outlook Express ... How to Configure OEx for Internet News ...
    (microsoft.public.windows.server.dns)
  • Re: XP machines going offline
    ... server. ... Microsoft MVP - Directory Services ... Instead of the website you're using, I suggest to use OEx (Outlook Express ...
    (microsoft.public.windows.server.networking)
  • Re: XP machines going offline
    ... server. ... Microsoft MVP - Directory Services ... Instead of the website you're using, I suggest to use OEx (Outlook Express ...
    (microsoft.public.windows.server.networking)
  • Re: Translate bytes in IP address
    ... I have a problem in my server, another device has the same name than ... group name, workgroup name, domain name and/or logon user account name ... Microsoft MVP - Directory Services ... Instead of the website you're using, try using OEx (Outlook Express ...
    (microsoft.public.windows.server.networking)
  • Re: Almost forgot ... Re: The Directory Service is currently unava
    ... server is the only server on site. ... Instead of the website you're using, I suggest to use OEx (Outlook Express ... This is a direct link to the Microsoft Public ... Infinite Diversities in Infinite Combinations ...
    (microsoft.public.windows.server.active_directory)