The other day I was updating my M1 Apple Mac Mini to macOS Monterey and received a strange error. “Failed to load update brain trust cache”. Being that I write a lot of try catch blocks when programming, and know they rules I live under to make meaningful actionable catch error box responses, and what goes into providing users information they can actually use to handle an error, I was intrigued to find out what Apple was thinking on this one.
Failed is just a verb they used to notify that they catch was reached.
Load is another verb letting the user a file was attempted to be opened
Trust Cache is something that Apple uses trust files for letting the system run stuff at a platform privilege level. Meaning these cache files content are trusted by the entire computer.
Update brain is the logic that is tied to an update. Meaning the programming (the brain) so the update knows what to do.
So in other words, during the update, the local trusted cache needs to be updated, the logic that runs the update regardless if the update is on a watch, phone, ipad, macOS or whatever needs to be trusted at a platform level so it can run. So that local immutable read only cache needs to get an update before the system can update.
My guess is that 1) the apple update downloads to a computer 2) the update once started does a hash compare to make sure the update file has not been hijacked during transit to the computer that is running the update. To do that the hash of the update is compared with apple over the internet. If the hash checks out then 3) the local trusted cache gets updated so the update can run a platform level with out the user having to enter their username over and over again during the update.
In my case, what the error was telling me is that when the hash was being compared, the compare either failed, or more likely when the Update Brain was attempted to be opened as a platform level trust cache, that open failed.
What I did is click the button to start the update again, and the file probably called update brain was able to load as platform privilege storage as trust cache.
So why would a company spend millions of dollars to develop and maintain a software application, then offer it for free to anyone who wants it? Why would Microsoft double down on efforts making it more difficult for users to switch their web browser to Chrome or Firefox? Something you need to understand about Products: You either buy a product or your are the product. And what does you earning Cryptocurrency, you and your web browser have to do with each other?
You have heard the term “Everybody wins”? well its kinda like that. Lets face it pretty much no one except a very small few could actually create a web browser. If you took for example the 250 million firefox users and the cost of annual development $50 million, you can see you would pay less than a dollar a year to use your firefox web browser. But since you sell part of who you are to firefox allowing them to sell that data, you get the web browser for free! Ya You, free $1 web browser, well done.
Joking aside, its a trade. You are trading a lot of information about you, what you like, buy, and are. For a web content browser that you don’t have to pay for. And Microsoft wants their piece of the pie back. Since people are creatures of habit, and most have the habit of using Chrome, then Safari, then Edge, Firefox, Brave, Opera…. Microsoft is trying to move up a spot by making the most popular operating system hard to change the default web browser. “Can’t win, cheat” I think is the motto that comes to mind.
In Windows 10 it was kind easy, you could change 1 setting and the only negative side effect is you are pestered with constant suggestion that you are doing it wrong and that you should try Edge. Well in windows 11, Microsoft went to a hole other level of truly devious proportion. You will need to change by protocol which browser you want to use. Thats right the protocol. And if you are reading this and are asking your self, what the hell is dot dot ping ping? you will probably be an Edge user with no escape. And Microsoft is counting on it.
The browser I think is fantastic is Brave. I am pretty sure they use the Chrome engine (don’t worry, dot dot ping ping) with a look that they created. They block most add’s, don’t sell your searching usage like all the others, and give you the ability to make money if you choose by getting a crypto called BAT for signing up to not block adds. Yep that is right, you can make money for the adds presented instead of 100% of that casholla going to the web browser company. Now that is closer to a win win agreed? The revenue Brave makes on you choosing to view and add last I check was split 70-30. Yep. you are the 30 and don’t tell you thought you would get it all. But before you run off and download and switch bot Brave because you want to start earning BAT crypto, do your research. learn about Crypt, know what a blockchain is. Learn how to use crypto to actually purchase something. Otherwise you have stuff on a screen that is useless. Know that crypto is still very new and there is a lot of changes happening and many opinions.
All in all, know nothing is free, self reflect and find out what you value, write it down. Find out what you don’t want to be, write it down. Yes a pen and paper. Do your due diligence and learn about the lake before you jump in the water, that stuff could be on fire, but maybe you like fire. Or maybe you like easy comfortable slow privacy phishing. At least you will be well known (to all the advertisers).
I hope this was helpful, maybe a little fun and scared you a little to. takes balance to be balanced.
Californian is not being sold, but it might be one day. The US Debit is at 27 Trillion dollars as of Nov 2 2020. If you sold seven FANG (Facebook, Amazon, Netflix, and Google) companies and took 100% of those 7 FANG companies sales, you could pay off the US Debt. Another way to look at US Debt, if you took every cent from the annual US tax revenue for 7 years (yes the Market Cap value of FANG is the same right now as the total US tax revenue) and applied that to the national Debt, you could get US out of debt.
What US citizen would the US citizen would be allowed to financially operate like the US Government? Answer is no one. We would eventually be put in jail after everything has been sized from us and we still could not pay our debt, or we would claim bankruptcy.
If the US were to claim bankruptcy, the world economy would unfortunately fail. So the pickle, since the US with a two party system will never stop increasing spending, and we cannot be taxed more than 100%; only logical conclusion is we will eventually be taxed 100% or the US will claim bankruptcy. I know this is dramatic but math never lies. The US will either claim bankruptcy because taxing US citizens 100% cannot happen or thinking out of the box, and what is more realistic is when the US get desperate and things really start to crumble, the US will start selling states off. What States do you think will be sold off by the US? Alaska maybe being close to China in between Russia and the US(China would buy it) or California (China would buy that too)?
Oh wait besides the national debt, there is also unfunded liabilities. This is the amount of money that is on the books to be paid to existing future bills. Think of it like you bought a cell phone on a two year plan. you owe two years. Your budget has this months charges, but you don’t have the other 23 moths, those are in unfunded liabilities. So the US has 155 trillion in unfunded liabilities. WTF for reals!! Yep true. So imagine if your unfunded liabilities was 45 times larger than your income for a year, and on top of that you spend more than you make every year, I know double WTF. And most politicians believe we should increase spending and taxes. If it were our house hold budget, we would decrease spending and increase income, not the US government, they play by their own rules sucker.
OK, so increase taxes. Lets say that we increase taxes to oh say 100% of everyones income. Yeah, no take home pay, just taxes. stay with me here. 2020 the personal income in the us was around 20 trillion. So you (everyone) would have to take zero thats $0 dollars home from your paycheck for more than a year, about a year and a half, then we could pay off the US Debt. OR another idea, we could liquidate everything the US owns (Assets) and then we could pay off the debt with some money to spare. But that 1 trillion to spare, we would eat up in about a half of year easily That is how much we over spend every single year. At least that. Remember none of that is taking into consideration unfunded liabilities (Social Security, Medicare, Veterans and a few other expenses).
But here is the absolute very best part of them all. You will love this swindle bait in switch character building exercise. Oh this is good. So who owns the debt? Well as you would think some is owned by Foreign governments, yep they own stock in the US (thats what it is), also Pension plans own some US debt.
OK US Pensions really? isn’t that unfunded liabilities? Also Monetary Authorities (Federal Reserve), Individuals, State/local governments , Banks, Insurance Companies. Basically Other countries own some debt, you and me if we purchased some US Stock, and a large amount of US debt is owned by the US debt. Kinda like using a credit card to pay off another credit card. Nicely done Sam.
Deficit – Where is this going?
As you can see from the chart below, Medicare and Social Security take the majority of tax revenue. The 4th biggest spend “Income Security” is one I had to look up; is general retirement and disability insurance, federal employee retirement and disability, unemployment compensation, housing assistance, nutrition assistance; and other income security like foster care, supplemental security income and earned income and child tax credits.
Federal Income has not changed much through time. Income tax has gone done about the same amount that social security tax has gone up. Corporate Taxes has gone down since 2016 by a third, which may seem like a lot. But keep this in mind. 1) Income Taxes and Social Security/Medicare taxes come out of your paycheck. Companies pay about the same amount in you do also as income and social security taxes, so half of what you see in the federal revenue charts are paid by corporations. The category called Corporate taxes are a very small amount of the taxes corporations pay. And that dip in “corporate taxes” being paid is about less than 1% of the taxes already pay as income, social security, medicare taxes.
US income compared to other countries
As you see form a revenue standpoint, the us takes in much more per person than China. Compared to India, India pretty much doesn’t tax their people.
Spending categories in the chart below for the biggest categories I will place below the chart. Look over the chart, then read over the categories.
IMHO I thing the spending reporting should not batch together everything they do group together in the category “Income Security”. Here is what the chart should look like. Charts should be used to provide a picture of values, helping you make decisions and start making assumptions. To me grouping everything in a category called Income Security is not a good choice.
Below is the actual chart. Again data is from DataLab
Commerce and Housing
Other Income Security
Interest from Debt
Federal Employee Retirement and Disability
Food and Nutrition Assistance
Retirement and Disability Insurance
What is the difference between the public debt and the deficit?
The deficit is the difference between the money Government takes in, called receipts, and what the Government spends, called outlays, each year. Receipts include the money the Government takes in from income, excise and social insurance taxes as well as fees and other income. Outlays include all Federal spending including social security and Medicare benefits along with all other spending ranging from medical research to interest payments on the debt. When there is a deficit, Treasury must borrow the money needed for the government to pay its bills.
You will noticed that 2020 has been a crushing blow to the already dismal outlook on US Debt. The chart below shows (in brown) the massive onslaught of new national debt. The one thing that I will be curious to watch is the future audits, the receipts I believe are severely over stated. There is no way we took in massive amounts of new Income Tax and Social Security charged on your paycheck when covid broke out. I believe when these audits occur, and numbers are correct, our national debt will take another massive debt making the total of US Assets less than the total US Debt. This is whats called F*(Ck3D.
Paying Off the Debt
OK, in reality selling California or Alaska or another state to pay off the debt, sure would work shy of any revolt not to mention the all the other civil catastrophic issues. I think it would be in our best interest to explore some other options.
I know this is NOT popular by any means with politicians on any side of the aisle, but I see it as the only option short of selling a state or going Bankrupt. This is spending within our Means and adding debt payments that would actually pay off the debt in 100 years or less as part of our expenses. I have a spreadsheet if you are interested in the math. The math i modeled below would include increasing taxes (using 2020 numbers) and reducing spending. I know, I know it is what you and I do, but for our politicians who lie cheat, steal, give them selfs raises, great pensions, forever healthcare better than what we all have, this is a very foreign concept.
I based it off rounding our 27.### trillion debt to 28T. Use the 2019 average expense of all that debt, perform compounding interest using the years that we are modeling, add that debt payment to the revenue and what is left is what we can use for social security, pensions, military and all the other stuff we are blowing money on at a rate that does not come anywhere near as close as any other country that seems to function pretty well compared to our so called self proclaimed “Greatest Country on Earth”. Side note: the rest of the planet laughs at us when we proclaim ourselves that. I know we don’t have the market on corrupt politicians, but we definitely have the market share. USA, USA!.
Rant done, in all seriousness, if you look at the amount left over to spend on social services, and what we spend now, you can see how painful this will be to the US. In reality, this thing will snowball light is was covered in lighter fluid, started on fire and thrown at our face. Hot, Cold and Painful.
When you decrease the amount of money people and business have to spend on stuff, you decrease sales taxes and GDP. This will reduce the number of jobs and increase the weight on social services, or if we stick to our guns and do not pay for things we do not have money for, create mass poverty and non humanitarian conditions. Especially because we live in a society where humans watch other humans on decisive big media news stations that emotionally charge you at the same time desensitize you to the ruble of seeing a catastrophe and saying “Ow thats so sad, let’s get pizza”. Instead of in the 18th and 19th century when you would help people in need. I know there are people who do help, but that is a very small percentage.
Will the US ever Get out of Debt?
Once facts are analyzed, the truth is shown. The US will never get out of debt, will eventually default, and may have to do something very drastic to become financially in check. But that will not happen until the American public first gets educated on what debt will do to the US, and then demand their representatives to care more about protecting their future than giving in to donors interested for the sake of their job security. If “public servant” feels they will not be re elected because they cut spending in their state to help save the country, and they still do it, give them a medal, maybe a memorial. But right now there are no medals, politicians turn on politicians even within the same clan. Getting elected is more important than doing what is right for most representatives. One side of the mouth they say they want to Unit the Divided States of America, and in the other side of their mouth they poke prod and stir peoples emotions playin the average Divided States of Americans citizens as a pawn, and treat their bishops, queens and kings as royalty. This is not a game, and until people remove politics from public service, we will never get out of debt, will default.
What does Default Look Like
To know what US Default on Debt looks like you need to run through a model of default. Keep in mind that it is not a thing where the US will not pay back everyone, but it could be a very small default. The danger is there is no such thing as a small default. Once confidence erodes, the debut will snowball.
US Personal Income https://www.statista.com/statistics/216756/us-personal-income/#:~:text=Personal%20income%20in%20the%20United%20States%20has%20risen%20steadily%20over,U.S.%20dollars%20at%20the%20time
US Debt Clock https://usdebtclock.org/#
18 facts on the US National Debt that are almost too hard to believe https://fee.org/articles/18-facts-on-the-us-national-debt-that-are-almost-too-hard-to-believe/?gclid=Cj0KCQiAhs79BRD0ARIsAC6XpaU34GFGo6TcEGKwBH4Jzay_dN-CAx3BmyjR4Qu9AxX1v6XD1s9EeZUaAit9EALw_wcB
Who owns the National Debt https://www.thebalance.com/who-owns-the-u-s-national-debt-3306124
US Debt owners https://www.sifma.org/resources/research/us-treasury-securities-holders/
US Debt TreasuryDirect.gov data https://www.treasurydirect.gov/govt/reports/pd/pd_debttothepenny.htm
Treasury Debt owners in their own words https://www.treasurydirect.gov/govt/resources/faq/faq_publicdebt.htm#DebtOwner
Good chart for seeing Social Security receipts since 1940 to 2017 https://www.taxpolicycenter.org/fiscal-fact/social-insurance-and-retirement-receipts-ff3262018#:~:text=Social%20Insurance%20and%20Retirement%20Receipts%20totaled%20%241.16%20trillion%20in%202017,the%201983%20Social%20Security%20reforms.
Little Snitch is a MacOS application that reminds me of a few products that existing in the early 2000’s called Black Ice and Network View. Black Ice would monitor connections to and from your computer and dynamically block connections if feels are a risk. Network View would show on a map connections to and from your computer so you can visually see where your computer is connecting to. Watch the brief Little Snitch overview video below.
Little Snitch is a fairly priced product and seems to respond quite well. It is highly configurable or ready to run out of the box for those who do not want to mess with settings.
To me the big attention getter for me to the product is visibility and knowing where the applications I was using was connecting too. Check it out, they have a trial that last 3 hours allowing you to kick the tires.
If you want to go to whole other level there is a tool you can download from github called Volatility that allows you to analyze memory dumps and look for things like root kits.
DNS or Domain Name System is the index off of the public internet. Allows you and computers to lookup computer addresses with human names. But also does much more than that.
Authorizes email as legit
Lets systems and people know what services are available
Sets up system redundancy for fail-over and fail back
Provides an authentication mechanism
And so much more…
For example lets say you want to tell a company like zoho that you own a dowmain name. Zoho can say, OK if that is you domain name, then prove it by updating the domain DNS and add some data that only I(zoho) know about. If you own the domain only you can update the DNS. Here is my my secret data. So I would go into my DNS manager, and add the secret code in my DNS. Then Zoho would query the my DNS record to see if their secret is there. If it is them the assumption is I own it.
That type of task or transaction is common when doing things like buying a domain name, and then hosting your email for your domain name in a cloud service like Zoho. What they will do is ask you to create a TXT record in your DNS.
DNS Records have types. Below is how you would or Zoho in this situation would query DNS to see what txt records exists for a domain. Keep in mind everything in DNS is public to the world, so never put anything that should not be shared with the world in it.
Non-authoritative answer: techaid.me text = “zoho-verification=zb92426001.zmverify.zoho.com” techaid.me text = “v=spf1 include:zoho.com ~all”
Another type that exists is what is called SOA (Start of Authority). Ever domain name has a single master DNS Record. Then that master DNS record is copied throughout the world so that where ever you are in the world, you have a DNS server close to you with information to lookup the computer IP address of a human DNS Name by service type. What is actually copied is who the SOA is, then if the DNS name is looked up one time, that info is cached. But more on that later.
Like we said earlier, SOA’s are the master record of a DNS name. And what is copied all over the world to other DNS servers is the SOA to Domain name list to top level domain servers.
Whats a Top Level Domain?
.com or .us or .net or .org
Top is all the way to the right, everything to the right of the very last period.
So if you have a domain name like mybigchicken.com the top level domain name is .com and your domain name is mybigchicken.com. And there is a server out there that has all the SOA server to your domain name index on it.
Root zones are authoritative name servers that serve the DNS root zone. Most people call them “Root Servers”. Its basically a bunch of servers around the world.
OK, so we are going to get a little in the weeds here. When I say a bunch of servers I mean hundreds. For example SCJohnson out of Racine Wisconsin in the US has some root servers. All of this information is public information. And the Governing authority IANA has an agreement with SCJohnson about how they will manager their root servers. There is a lot of work and responsibility when running a root server, take a look and explore the agreements in the link below.
Root servers have every SOA for every top level domain name. In addition to some top level domain name A(CNAME) and AAA Records. For example, there are servers a-m(13 servers) for the .com domain name.
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.
com. 172800 IN NS m.gtld-servers.net.
Here is how a query works. We will use the example of sherry turns on a computer, opens a web browser, and navigates to www.brandnewdomain.com
Sherrys computer web browser will look at the computers storage memory(cache) for a existing dns lookup for www.brandnewdomain.com. Lets say Sherry never went to the web site before, sherrys computer will now look at the computers network configuration, and find out what the DNS servers are on sherrys computer. And send a query to the DNS servers. Probably a local internet service providers computer. Sherrys computer will not send that query to that area DNS Server. Lets say the computers DNS IP is 22.214.171.124 which belongs to rns01.charter.com
The internet service providers(ISP) DNS server rns01.charter.com lets say has never looked up www.brandnewdomain.com, in that case the charter.com dns server will reference a root server to find out what DNS server in the world has www.brandnewdomain.com master DNS Record. If the charter DNS server had looked up the domain name, the ISP DNS server would have simple returned the IP address to sherry. The ISP will reference the list of Root Servers which exist on every DNS Server starting with the first one. If offling or busy, the next root server is tried. The Root server tells the ISP DNS server to try the server a.gtld-servers.net. This server will know what SOA DNS IP(Start of Authority Domain Name Server Internet Protocol Address).
You might as, how does the ISP DNS server know what the IP of the a.gtld-servers.net is? good questions, the Root servers always have the lookup IP address of all top level domain name DNS servers.
a.gtld-servers.net. 172800 IN A 126.96.36.199
So now the ISP DNS server reaches out to 188.8.131.52 and asks the question, What is the SOA for www.brandnewdoamin.com. And the IP 184.108.40.206 responds with ns1.namebrightdns.com. Now the ISP DNS server sends a query to ns1.namebrightdns.com and asks whats the IP of the host name www.brandnewdoamin.com which responds to the ISP DNS which is cached on the ISP DNS server ffor the amoutnof time in the expire setting of the domain name (TTL), the the ISP DNS forwards that response to Sherrys computer, which in tern also caches(remembers) the IP address lookup for www.brandnewdomain.com.
If the domain name is tried again for Sherry or anyone else who uses the ISP DNS server, the cached record is used instead of having to back to root servers and then a SOA server.
There you have it. An system designed for redundancy and efficiency and control. Does a lot of work and provides a lot of servers, and it is free. Kinda, but not really. Cost to run all this infrastructure is spread out through tons of servers like internet connections, hosting costs and so much more.
Ancestery.com is a service that can analyze your DNA and supposedly let you know your genetic heritage. Meaning did your relatives come from ireland, africa, russia; and what kind of ancestry you are percentage wise based on your DNS from a spit test.
Me being a skeptic who wants to believe but needs some sort of believable evidence first decided to do a blind test. Meaning, I provided as little information as I could about me and my relatives with a goal of letting the DNA analysis stand on its own. Of course I new some basic heritage facts, but I wanted to see if the DNS analysis matched what I new for fact. or if they are just logically guessing based on strand matches.
Trying to export audio from Wireshark can be a pain. But if you practice a few habits, it is a lot easier. If you do a lot of network packet capturing and RTP playback using WireShark for quality troubleshooting in the VOIP field, you have came across the dreaded error “Codec is not supported, file is incomplete”.
You probably have also came across trying to play a stream but the stream is blank.
Also, if you are trying to quickly find out what DSCP is doing, or what country IP’s of a PBX are from, using these tricks can be the difference between frustration and or a lot of clicks or smooth sailing.
My Quick VoIP Tips
If you are really fluent and don’t need much direction, below are the things I do as a practice. If you need to learn what this stuff is and how to do it, read more below.
Always separate calls into separate files using prepare filter
Save audio to raw, import with Audacity and convert to mp3
I always separate calls from captures because not only does it make processing packets faster, but you can play streams that just wont even play when you have larger captures. Regardless of computer you are using.
The first image is what you see when you try and play stream on a large capture. Second image is what you see when you have done a prepare filter on the call, export visible, and reopened those exact same packets and clicked play stream again.
If you dont know how to do any of this, Ill walk you through it.
Open your capture, click Telephony >> VoIP Calls
Wait fo the “Recalculating statistics on all packets” to complete. you will see this on the bottom of WireShark.
Now you should see the WireShark – VoIP Calls screen.
Click on the call you want to listen to and click the Prepare Filter button. Wait for Filtering frame number to complete in bottom of WireShark
Go back to the main WireShark screen, click Filter >> ExportSpecified Packets >> All Packets >> Displayed and name and save new file.
Now open the new capture file, go back to Telephony >> VoIP Calls, you will see only one call, and chances are Play Streams will now show you your sound you want to play.
Codec is not supported, file is incomplete
This error from what I suspect has to do with some sort of buffer overflow not handled in WireShark export methods. Probably a memory limit in the programing converting RTP payload to au file type. Regardless of why, there is a trick to avoiding this. Couple simple steps. Without the Trick it is impossible to export long calls to audio.
save the forward and reverse as raw
import into Audacity
Set to Stereo left and right
Saving Forward and Reverse to raw
Open call capture in WireShark >> Telephony >> RTP >> RTP Streams
Select both streams and click Analyze
Click Save >> File Synchronized Forward Audio and change format to Raw
Repeat for Reverse Audio
Import Raw Files into Audacity
File >> Import >> Raw Data and select raw file you exported.
Select Encoding >> U-Law, Channels >> 1 Channel (Mono), Sample rate 8000. (These settings may be different for your phone system, these are Switchvox settings)
Repeat for both forward and reverse raw files.
Set Left Right Pan
Finally just drag the sliders for left and right for each audio feed so you can clearly hear both forward and reverse audio.
Thats it for now. If I come up with some more tips, I will update this post. It is very likely that I may do something that is a tip to others but to me it’s just SOP. So feel free to ask me or suggest anything.
This neat trick allows you to see the source and destination IP county. At least the country listed in the MaxMind databases. Keep in mind you could have a US IP address say from PureVPN connecting to you, and the user is actually in the country of Bolivia.
There are literally hundreds of thousands of IPs that are owned by VPN companies who will lease out VPN connections so anyone who pays including perps. The actors or perps can now pick and choose where they want to pretend to be from anywhere in the world. Most good hackers will use multiple VPN’s and multiple countries(you know on tv when McGeek say “Its gonna take a while gibs, they are bouncing off routers all over the place”. So you have to go pretty far down the rabbit hole to find the actual source. But this does give you insight into honest folks, and kiddie hackers.
I save my database folder on Google Drive File stream (you can use drive also, but I recommend don’t use the free drive), and mark it as offline. that way if any of my coworkers need to use it also, then can do the same.
Go to Wireshark >> Edit >> Preference >> Name Resolution and add the MaxMind database folder
Now right click the Column header and select Column Preferences
Add both columns for the ip.geoip.src_country_iso and ip.geoip.dst_country_iso and drag to the column order you want
Finally you need to restart WireShark for this to take affect. NOTE you can see the countries for public static IP addresses in both live captures and files you newly open up.
This script will show you what the old server name was and what the current server name is. Even though you rename the machine name through windows system advanced properties, theSQL server name stays what it was on original install date.
SELECT ServerProperty('machinename') as [machinename]
,ServerProperty('ServerName') as [ServerName]
,@@ServerName as [@@ServerName];
I recently needed to inject the name of the SQL server into a script that exported blob data to a file system. I used @@servername but to my surprise it returned the name of the server that the SQL server used to be. I cloned this a production server to do some testing and renamed the server.
EXEC sp_dropserver 'NETSQL3';
EXEC sp_addserver 'NET3', 'local';
This SQL command will rename the server variable value for @@servername.