Sponsored Content
Full Discussion: how to grep a subdomain
Top Forums Shell Programming and Scripting how to grep a subdomain Post 302337606 by peterro on Friday 24th of July 2009 12:52:26 PM
Old 07-24-2009
This is the way regular expressions work. If you would explain why this is a problem you might get better results.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

email account for subdomain (HOW-TO)

Hai i need to create an email account for subhost... I tried creating an unix user account... But the adduser (or) useradd command is not working in subhost login even when i entered with the root login of the subhost... If i create unix user account with root login of host, then the mail... (1 Reply)
Discussion started by: collins
1 Replies

2. Linux

domain pointer for the subdomain

hi frnds. I have created a domain called mydomain.net i have added a subdomain tim.mydomain.net , cynthia.mydomain.net and harley.mydomain.net how could i add a domainpointer for these subdomains as well. So I can run jsp on it. Does any one have... (0 Replies)
Discussion started by: naik_mit
0 Replies

3. Programming

how to know if a directory is normal one or subdomain?

there are 2 directiries under public_html directory: public_html/images public_html/pictures "images" is a normal directory (uploaded by ftp) and "pictures" is a subdomain (created in cPanel). if using cpanel, I know "pictures" is subdomain because it is displayed as subdomain in cpanel.... (1 Reply)
Discussion started by: hello20009876
1 Replies

4. UNIX for Dummies Questions & Answers

My Deleted SubDomain is mirroring main site

I deleted my subdomains using cPanel. But when i Got to subdomain.site.com it still pulls up my main site . what can I do ? thanks (2 Replies)
Discussion started by: upirate
2 Replies

5. Shell Programming and Scripting

find subdomain in url

I want to find out subdomains in the url using shell script. e.g narendra.eukhost.com abc.domainname.co.uk I want to extract narendra & abc from the above urls. Please any one can suggest idea or script ? (2 Replies)
Discussion started by: nrbhole
2 Replies

6. Solaris

subdomain name entry in DNS server

Hi all, I'm tying to add dns a A record to a dns server running on Solaris 10 on sun's SPARC machine i want to do the following add host name to point to an IP address for a machine running win2k3 both machines have real IPs and exposed to the internet where can i add the A records on DNS server... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

7. IP Networking

MX record for a subdomain

Hi all, I have problem regarding public subdomain delegation i have created an A record for subzone in BIND on a machine running Solaris10 Sparc to point to another machine running win2k3 as follows sub.domain.tld and www.sub.domain.tld now i want to add an MX record for mail routing for the... (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

8. What is on Your Mind?

Tld.subdomain.name.subname

Way back in the early dawn of the 'net, there were two competing notations for specifying a FQDN, the familiar name.subdomain.domain.tld (such as news.bbc.co.uk) and the reversed tld.domain.subdomain.name (uk.co.bbc.news). And if memory serves, only the UK used the latter style of FQDN for a period... (0 Replies)
Discussion started by: derekludwig
0 Replies

9. UNIX for Dummies Questions & Answers

Subdomain is not working, debian, apache

Hi, I use debian jessie, apache. I am not allowed to post links here at this forum, I am new user. I made subdomain porodin.predicsasa.com and it is working, vhost file is porodin.conf in /etc/apache2/sites-available then I copied vhost file and made it hosting.conf, did a2ensite hosting and it... (5 Replies)
Discussion started by: alanford
5 Replies

10. IP Networking

Free subdomain to my IP Address and Static IP

Hi all, I would need to register a random free subdomain address and associate that to my IP Address. Any suggestion of a good service? Also I don't have a static IP but i remember that there are services that automatically reset the right IP address behind the subdomain but i don't remember... (1 Reply)
Discussion started by: Tameto
1 Replies
HOSTNAME(7)					       BSD Miscellaneous Information Manual					       HOSTNAME(7)

NAME
hostname -- host name resolution description DESCRIPTION
Hostnames are domains. A domain is a hierarchical, dot-separated list of subdomains. For example, the machine ``monet'', in the ``Berkeley'' subdomain of the ``EDU'' subdomain of the Internet Domain Name System would be represented as monet.Berkeley.EDU (with no trailing dot). Hostnames are often used with network client and server programs, which must generally translate the name to an address for use. (This task is usually performed by the library routine gethostbyname(3).) The default method for resolving hostnames by the Internet name resolver is to follow RFC 1535's security recommendations. Actions can be taken by the administrator to override these recommendations and to have the resolver behave the same as earlier, non-RFC 1535 resolvers. The default method (using RFC 1535 guidelines) follows: If the name consists of a single component, i.e. contains no dot, and if the environment variable ``HOSTALIASES'' is set to the name of a file, that file is searched for a string matching the input hostname. The file should consist of lines made up of two strings separated by white-space, the first of which is the hostname alias, and the second of which is the complete hostname to be substituted for that alias. If a case-insensitive match is found between the hostname to be resolved and the first field of a line in the file, the substituted name is looked up with no further processing. If there is at least one dot in the name, then the name is first tried ``as-is''. The number of dots to cause this action is configurable by setting the threshold using the ``ndots'' option in /etc/resolv.conf (default: 1). If the name ends with a dot, the trailing dot is removed, and the remaining name is looked up (regardless of the setting of the ndots option), without further processing. If the input name does not end with a trailing dot, it is looked up by searching through a list of domains until a match is found. If nei- ther the search option in the /etc/resolv.conf file or the ``LOCALDOMAIN'' environment variable is used, then the search list of domains con- tains only the full domain specified by the domain option (in /etc/resolv.conf) or the domain used in the local hostname. For example, if the ``domain'' option is set to CS.Berkeley.EDU, then only CS.Berkeley.EDU will be in the search list, and this will be the only domain appended to the partial hostname. For example, if ``lithium'' is the name to be resolved, this would make lithium.CS.Berkeley.EDU the only name to be tried using the search list. If the search option is used in /etc/resolv.conf or the environment variable ``LOCALDOMAIN'' is set by the user, then the search list will include what is set by these methods. For example, if the ``search'' option contained CS.Berkeley.EDU CChem.Berkeley.EDU Berkeley.EDU then the partial hostname (e.g., ``lithium'') will be tried with each domain name appended (in the same order specified); the resulting host- names that would be tried are: lithium.CS.Berkeley.EDU lithium.CChem.Berkeley.EDU lithium.Berkeley.EDU The environment variable ``LOCALDOMAIN'' overrides the ``search'' and ``domain'' options, and if both search and domain options are present in the resolver configuration file, then only the last one listed is used (see resolver(5)). If the name was not previously tried ``as-is'' (i.e., it fell below the ``ndots'' threshold or did not contain a dot), then the name as orig- inally provided is attempted. ENVIRONMENT
LOCALDOMAIN Affects domains appended to partial hostnames. HOSTALIASES Name of file containing (host alias, full hostname) pairs. FILES
/etc/resolv.conf See resolver(5). SEE ALSO
gethostbyname(3), resolver(5), mailaddr(7) BSD
February 16, 1994 BSD
All times are GMT -4. The time now is 11:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy