Programming :: Parsing Datetime Domain Names

Oct 25, 2010

I have spent lots of time trying to figure out how to parse the domain part of this file but am stuck.

How should this be approached:

Code:

Code:

The domains need to be parse at a maximum for 4 levels then the remainder will be put the last field.

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Unable To Setup The Domain - How To Use Two Domain Names

Feb 16, 2011

i have registered two domain names that i want to use to connect to my ubuntu server. I was wondering how to do this i was looking at bind9 but that didn't work that great. The server is behind a router with firewall i can connect to it using the external IP address but i like to use the two domain names if that is possible.

View 3 Replies View Related

Programming :: Formatting A Datetime String - In G++ ?

Jul 10, 2011

I copied and tested a piece of simple formatting a datetime string code from book, c++ cookbook, page 201, Chapter5 section2, Example5-4. but it wont compile in my g++ 4.5.2(on ubuntu 10.04, kernel2.6.35-25)

Example 5-4 formatting a datetime string

Using namespace std;

View 1 Replies View Related

Programming :: ImportError: No Module Named Mx.DateTime.ISO

Sep 9, 2010

In Python 2.6.5, I could import from mx.DateTime.ISO import ParseDateTimeUTC With 2.7 I cannot.Here is the error. My module util_lib contains the import noted above.

File "util_lib.py", line 46, in <module>
from mx.DateTime.ISO import ParseDateTimeUTC
ImportError: No module named mx.DateTime.ISO

What changes do I need to make, to import on pre-2.7 and 2.7?

View 2 Replies View Related

Programming :: Removing Duplicates With Offset - Datetime

Oct 20, 2010

I have a column of datetime entries which I sorted to removed duplicate entries.

I have still lots of entries which are adjacent to each other by 1 second.

How would I go about removing any entries which have an offset of the previous or after entry by 1 second?

Code:

View 5 Replies View Related

General :: Kernel Programming - Convert Timespec To Datetime

Dec 29, 2010

I'm changing some syscalls functions into kernel 2.6.36.2

So i'm doing this :

Code:

But i have a output like this : Date 1293619251

How can i convert inode->i_atime into D:M:Y h:m Format?? or just simply D:M:Y

View 1 Replies View Related

Fedora Servers :: Where To Get Domain Names?

Dec 28, 2009

I'm going to be setting up my own server soon, but have some questions...

Where do you guys recommend I get a domain name from?

I have looked at GoDaddy for now. Any suggestions?

View 14 Replies View Related

General :: Use Grep To Match Domain Names?

Jan 10, 2011

I have a list of urls like code...

How can I use grep to match the domain names only?

All the urls have a / after the domain. And there are a lot of tlds, not sure how many, the list is quite big.

View 3 Replies View Related

Networking :: Multiple Domain Names On One IP Address?

Dec 19, 2009

Is it possible to have one static IP address with a NAT network forwarding each domain name to certain internal/DMZ IP addresses? I know you can do it by port but if both websites are on port 80 can you forward to the corresponding server on the dmz.I ask this because I noticed the website braemere.com.au had to be typed into a web browser and entering the IP which is 202.47.5.7 did not take me to the website.

View 5 Replies View Related

Server :: 2 Websites (domain Names?) 1 Cup Err Ip Address?

Dec 13, 2010

So I'm looking to host potentialy three different...sites...I want to call them from the same machine. One is a radio station and the other 2 are just straight websites. So I wanted to know if I had to use different machines to accomplish this or can I alter maybe the http conf file or what. I did find this in the forums but wasn't quite sure if this applied to me. [URL="http://www.linuxquestions.org/questions/linux-software-2/serving-multiple-domain-websites-on-one-server-329914/"http://www.linuxquestions.org/questions/linux-software-2/serving-multiple-domain-websites-on-one-server-329914/[/URL]

View 1 Replies View Related

Fedora :: Browsers Don't Resolve Domain Names While Other Programms?

Apr 16, 2010

I'm new here, so please be gentle! I recently installed F12 64 KDE on my Acer Aspire 1810TZ, could connect to the WLAN router but neither the native Konquerer nor Firefox could open any pages...

resolve.conf has the DNS according to DHCP offer, from command line dig properly resolves the name, ping (e.g. google) works, telnet to domain-name on port 80 works, GET too. When using the browser with the domain-name I tells me "Server not found", tcpdump doesn't display any activity. But when I manually change the domain-name with the IP (received by command line dig) then the browser has no problem how do browsers interact with the network resources of the OS?

View 4 Replies View Related

Ubuntu Networking :: Able To Ping IP Address But Not Domain Names?

Jun 15, 2010

Since two days i m not able to browse websites using the domain names but able to ping/browse using IP addressed. I have done the following:

1. Using wireless i m able to get IP address of DNS (8.8.8., Gateway, localhost & router ip address
2. Disabled wireless and connected ETH0 but still the same problem
3. not able to edit resolv.conf

sudo gedit resolv.conf
** (gedit:4179): WARNING **: Hit unhandled case 0 (Error opening file: Input/output error) in parse_error.

[code].....

View 4 Replies View Related

Ubuntu Servers :: Tracking Domain Names And Addresses?

Aug 5, 2010

I'm using Ubuntu 10.4 box with Apache2 web server. I have a site with several Domain Names. How do I set up tracking?

View 1 Replies View Related

Ubuntu Servers :: Router Will Not Ping Domain Names

Jun 9, 2011

For clairification, I can ping. I have tried several IP addresses and 100% success rate. When I noticed the problem I was trying to run sudo apt-get update && apt-get upgrade After some time I noticed these error messages to start with

[Code]

I tried to ping the adddress security.ubuntu.com from my Windows machine to verify that I could connect and was surprised when I could. I then pinged the address 91.189.92.167 which is what my windows machine resolved the name as and it went though.

My thoughts on this are that when my Ubuntu Router came up, for some reason it did not incorporate the ISP's DHCP servers into the ip address it obtained. Sadly I know to view ALL IP infomation in windows via ipconfig /all command but I do not know what this is in the *nix world. need commands that I can use to check and troubleshoot this apparently DHCP issue so I Can start to update my server and expand on its services?

View 1 Replies View Related

Networking :: Dns Server Not Able To Resolve Local Domain Names

Mar 19, 2009

I recently installed bind9 on mandriva 2008.1, after having done the necessary configuration.. I still can't find my domain I configured cant ping on other machines on the LAN but can actually ping on any other website on the internet even though name server is configured to point to local machine..... I dont understand what I'm doing wrong.

View 14 Replies View Related

General :: Dual Domain Names On A Single Network?

Aug 10, 2010

Here is my scenario and what I want to try and achieve.

I have:

Quote:

Server A = 192.168.1.5 (serverA.home.com)
Server B = 192.168.1.6 (serverB.home.com)

Currently I have serverA.home.com domain name set up using a free dns service online. When I am anywhere in the world I just type the domain name it hits my static ISP IP via the free dns servers online, hits my home router, gets port forwarded to 192.168.1.5 Server A and I am up and running.

Now...

I have bought a second domain for serverB and want it set up like serverA but I am totally baffled on how I can resolve 2 domain names on a single network? I need (somehow) to try and tell the dns servers that when I enter in serverB.home.com it will hit my static ISP IP as above and then hit my home router but then get directed/split to Server B and not to Server A.

Basically all I want to do is name the machines and get traffic resolved to them.

View 2 Replies View Related

General :: View All Domain Names Hosted On An IP Address?

Oct 21, 2009

Is there a way you can view all domain names hosted on an IP address using dig or whois? Say if a server is using Name Based hosting??

View 5 Replies View Related

Fedora Networking :: Local Host Names Without Domain Using Bind?

May 10, 2009

I want to use single label host names on my local LAN, without using any domain (at least no registered one). My machines should be named in a fashion similar to 'myserver', 'mydesktop' etc. so that i from a browser on any LAN machine may write 'http://myserver', and get the webserver on 'myserver' (so NO domain part, e.g. myserver.domain).

Do i need to create a DNS zone for each host or is there a way to put all host in a single zone, if so; which? Would such a name be considered a root domain?

View 4 Replies View Related

Ubuntu Servers :: Can't Ping Loopback Or Domain Names / But Ip's Work

Jan 7, 2010

I have been logging into a server remotely and trying to set up a mailing list on it. The server is the newest version of ubuntu server: uname -a: Linux Themis 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686 GNU/Linux.I noticed I could not download packages with apt-get or ping domain names, and I can't even ping 127.0.0.1.And do you think there is something wrong with the network card?

View 9 Replies View Related

Ubuntu :: Lost Local Domain Names After Upgrade To Karmic?

Jan 19, 2010

before i upgrade to karmic i used to visit some local domains like freenas.local.

But after the upgrade the domains doesnt work. I can go to smb://freenas/ but in firefox / chrome or in fstab i cannot use freenas.local ...

View 2 Replies View Related

Networking :: SQUID - Exclude IP Addresses Instaed Of Domain Names?

Aug 16, 2010

Howto exclude IP address from caching in /etc/squid/squid.conf of squid 2?

For a domain, I can use:
Code:
acl excl dstdomain domain.net
always_direct allow excl
no_cache deny excl

but howto exclude IP addresses instaed of domain names?

View 2 Replies View Related

CentOS 5 Networking :: Binding Domain Names To A Folder Below The Web Root?

Sep 1, 2010

I have a centOS 5 server running apache 2 with it's web root at /var/www/html. By setting up a dns entry to point to the computer's IP, I was able to go to testing.myservername.com and reach the contents of that directory.My question is, how can I go about mapping multiple future domain names to folders that are under this webroot?For example how would i bind www.temporarydomain.com to the /var/www/html/temporarydomain/ folder and also be able to map www.anotherdomain.com to /var/www/html/anotherdomain/?

View 1 Replies View Related

OpenSUSE Network :: Software Manager Not Resolving Domain Names / Sort It?

Mar 11, 2011

I updated to 11.4 today and software manager is having trouble resolving host names. below is the exact error through software manager

Download (curl) error for 'http://download.opensuse.org/distribution/11.4/repo/non-oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve host 'download.opensuse.org'

here are the steps that i have taken already to resolve and troubleshoot the issue.
i can ping Google.
i can browse the Internet
i can browser the repo Index of / through my browser.
i have insured that ipv6 is disabled through network configuration through yast.

View 3 Replies View Related

Server :: Unable To Send To Certain Domain Names - Mails Getting Back With Errors

Sep 20, 2010

i am having mail server. im using sendmail.but it is not able to send to certain domain names....mails are getting back with the following errors

this is from logs

[code]...

View 14 Replies View Related

CentOS 5 :: Configure Sendmail To Accept Email Without Domain In Local-host-names

Mar 23, 2011

dammit... all that typing and I hit the wrong "submit" button. *sigh*

Ok, I have a couple of SMTP servers for our infrastructure. They are running Postfix. I have them configured so that specific email addresses such as support@mydomain.com and billing@mydomain.com all go to a new support server that I am building with osTicket. Lets call that server SUPP1.

SUPP1 runs sendmail from the default install of CentOS 5 i386. At this point everything runs great. New emails get added into the osTicket system via a pipe in sendmail. Here's where the problem comes in. In order to accept mail, sendmail has to have the domain listed in local-host-names and the addresses in virtusertable. That works just dandy. But in doing so, sendmail believes it is the destination SMTP server for "mydomain.com". That means that I can't send mail from that server back into my normal SMTP servers. So things like the LogWatch, cron jobs, etc can't send notifications. Is there a way to work around that? For sendmail to ignore local-host-names for outbound email or something?

View 1 Replies View Related

Ubuntu Networking :: Windows Clients Lose Ability To Resolve Local Domain Names

Dec 2, 2010

I have an internal domain (dev.lan) for which my Ubuntu server is authoritative. We have a number of subdomains under that domain (test.dev.lan, svn.dev.lan, etc.). The server also acts as the primary DNS server for my office. It was originally set up under Ubuntu 8 and worked great.

However, ever since we upgraded to Ubuntu 10, our Windows clients periodically lose the ability to resolve domains on the dev.lan domain. Internal IP addresses can still be pinged from the Windows machines so it does not appear to be a network-connectivity issue. External domain names continue to resolve without any problems. The only workaround is to restart networking on the Windows clients. It's frustrating because it happens several times a day.

bind9 logs no obvious error messages.

View 3 Replies View Related

Programming :: Match Datetime By The Minute (not An Exact Match By The Second)

Oct 21, 2010

I have the following query:

Code:
$sql="SELECT table1.datetime, table1.user_id, table2.ip, FROM table1,table2 WHERE id='$id' AND (table1.id = table2.id AND table1.datetime = table2.datetime)";

In table2 the datetime fields are about 1 to 2 seconds off due to the source of the data, which I cannot change.

Is it possible via a query match table1.datetime & table2.datetime by HH:MM (ie. to the minute instead of to the second)?

View 1 Replies View Related

Programming :: Parsing Log File With Awk?

Aug 31, 2009

I have logs files from freeradius that have looks as follows:

$ grep "Login incorrect (rlm_ldap: User not found" /var/log/radius/radiusd-inner-tunnel-20090831.log
Mon Aug 31 09:25:27 2009 : Auth: Login incorrect (rlm_ldap: User not found): [John Doe] (from client oficina port 0 via TLS tunnel)

[code]....

I use the following line to get the amount of users that don't exist on ldap:

Code:

grep "Login incorrect (rlm_ldap: User not found" /var/log/radius/radiusd-inner-tunnel-20090831.log | awk '{print $14}' | sort -fu | wc -l

Now, awk on line one for example parses [John Doe] and [Joon Williams] as "[John" and that it's not what I'd want. I mean how could I do for awk looks username field as closed between squared brackets?

View 1 Replies View Related

Programming :: Datetime Format From MM-DD-YYYY HH:MM:SS To YYYY-MM-DD HH:MM:SS

Oct 13, 2010

I need to manipulate a column in a log file from the following format:

Prior to importing to a mysql database.

Unfortunately, I am not able to configure the device which is sending the logs to use the correct standard datetime format.

View 4 Replies View Related

Programming :: Get Group Name From GID Without Parsing /etc/groups?

Sep 14, 2010

Is there a Linux system call that can be used to get the group name from the GID returned by stat()? I realize that I could parse /etc/groups (if my user had sufficient permissions).

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved